www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/30/13:21:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199909301719.MAA10566@mercury.xraylith.wisc.edu>
To: "Araujo, Isaque G." <Isaque DOT Araujo AT alcoa DOT com DOT br>
cc: "'M. R. Brown'" <marcusb AT csd DOT uwm DOT edu>, cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Programming COM interfaces with C++
In-Reply-To: Your message of "Thu, 30 Sep 1999 10:02:42 -0300."
<7F756A7F899DD11187BF0000C07018E5019F46D1 AT soaspw1 DOT soa DOT alcoa DOT com>
Date: Thu, 30 Sep 1999 12:19:49 -0500
From: Mumit Khan <khan AT thor DOT xraylith DOT wisc DOT edu>

"Araujo, Isaque G." <Isaque DOT Araujo AT alcoa DOT com DOT br> writes:
> Well, I downloaded the files from this site, but when I try to compile, it
> gives:
> C:\GCC-2.95\src\comexample2>make
> c++  -c  -Id:/src/w32api/include  -g -fvtable-thunks  cmpnt.cpp -o cmpnt.o
> c++  -c  -Id:/src/w32api/include  -g -fvtable-thunks  guids.cpp -o guids.o
> c++  -c  -Id:/src/w32api/include  -g -fvtable-thunks  registry.cpp -o
> registry.o
> 
> dllwrap --driver-name c++  --dlltool-name dlltool --as as --entry
> __cygwin_noncy
> gwin_dll_entry AT 12 -o cmpnt.dll cmpnt.o guids.o registry.o  \
>   --def cmpnt.gnu.def -Ld:/src/w32api/lib -lole32 -luuid
> ld: warning: cannot find entry symbol __cygwin_noncygwin_dll_entry AT 12;
> defaultin
> g to 6e381000

Are you using Cygwin or Mingw32? It looks like you're using Cygwin
examples with Mingw32 compiler.

I just realized that the GNU Makefile was written for Cygwin and 
won't work with Mingw32. To make it work with Mingw32, *remove*
the `--entry __cygwin_noncygwin_dll_entry AT 12' from the DLLWRAP_FLAGS
variable and rebuild.

Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019