This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: helpful hints to build dlls in Win32 using cygwin (gnu)


I did exactly as u recommended in your hints - and yet I get the
following error when I run the linker (ld).  Am I missing something in
the cygwin distribution?

/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libccrt0.o)(.text+0x
8a):libccrt0.cc: undefined reference to `GetModuleHandleA@4'
/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libcmain.o)(.text+0x
c):libcmain.cc: undefined reference to `GetModuleHandleA@4'
/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libcmain.o)(.text+0x
15):libcmain.cc: undefined reference to `GetCommandLineA@0'
/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libcmain.o)(.text+0x
1e):libcmain.cc: undefined reference to `WinMain@16'

As a work around, I included Kernel32.lib and Mfcs40.lib from my VC++
(4.0) directory in the ld command (the above symbols get resolved with
these libraries from ms) and I could a dll file built. This led me to
the suspicion that I may be missing something from the cygwin
distribution - I downloaded cdk.exe from the latest directory (I think
it is b18). (From where I am in my application, I'd like to build my app
without any thing from the MS VC++ distribution - hence the question)

Any help would be greatly appreciated - Thanks in advance

Padmakar Vishnubhatt
mailto: padmakar@eng.sun.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]