This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: DLL problem
- To: stf at hugo dot int-evry dot fr (Stephane Mariel)
- Subject: Re: DLL problem
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- Date: Sun, 24 Aug 1997 19:10:26 +1000 (EST)
- Cc: gnu-win32 at cygnus dot com (Cygnus GNU-win32 mailing list)
Stephane Mariel, you wrote:
> I'm trying to port a unix network tool (at least the client) to Win95/NT ,
> since there is a DLL to create, I tested the example provided on
> www.cygnus.com.
>
> It works fine, i got my foo.dll, main.exe, but moving to my real software
> when I run ld for the first time I got
>
> c:/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libccrt0.o)(.t
> ext+0x8a):libccrt0.cc: undefined reference to `GetModuleHandleA@4'
> c:/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libcmain.o)(.t
> ext+0xc):libcmain.cc: undefined reference to `GetModuleHandleA@4'
> c:/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libcmain.o)(.t
> ext+0x15):libcmain.cc: undefined reference to `GetCommandLineA@0'
> c:/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libcmain.o)(.t
> ext+0x1e):libcmain.cc: undefined reference to `WinMain@16'
This occurs because there is no definition for `_impure_ptr' in your DLL.
See <http://www.cs.mu.oz.au/~fjh/gnu-win32/how-to-build-dlls.html>
for a brief explanation about `_impure_ptr'.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".