From: stf AT hugo DOT int-evry DOT fr ("Stephane Mariel") Subject: DLL problem 22 Aug 1997 21:24:54 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199708190947.LAA20111.cygnus.gnu-win32@hugo.int-evry.fr> Original-To: X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1161 Original-Sender: owner-gnu-win32 AT cygnus DOT com Hi, 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 AT 4' c:/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libcmain.o)(.t ext+0xc):libcmain.cc: undefined reference to `GetModuleHandleA AT 4' c:/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libcmain.o)(.t ext+0x15):libcmain.cc: undefined reference to `GetCommandLineA AT 0' c:/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libcmain.o)(.t ext+0x1e):libcmain.cc: undefined reference to `WinMain AT 16' I probably should say to ld something like, there would be a winmain elsewhere, and I will use the right winapi.dll when running the program? It's probably not very difficult, but i'm not very familiar with all the Win stuff, so any idea? Thanks, stf - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".