This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
problems linking
- To: cygwin at cygwin dot com
- Subject: problems linking
- From: Norman Frederick <normanf at qualcomm dot com>
- Date: Fri, 07 Sep 2001 16:17:51 -0700
Dear Sirs:
I am having problems linking modules compiled using your gcc.
example:
gcc -c simple.c
ld simple.o crt0.o -lm -lc
get error:
/usr/lib/libm.a<_cygwin_crt0_common.o>undefined reference to GETModuleHandleA@4
What is missing?
I have also tried
ld simple.o -lm -lc crt0.o gcrt
but get a bunch of undefined references.
Thanks,
Norman
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/