This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: undefined reference to '_...
- From: "Hans Horn" <hannes at 2horns dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 8 Jun 2003 13:22:54 -0700
- Subject: Re: undefined reference to '_...
- References: <bbvr94$edj$1@main.gmane.org>
Andrew Markebo wrote:
| Just give it a try and put "the library" one more time in the linker
| command, at the end.
|
| /A
Andrew,
you are right,
repeating the list of internal libs back-to-back
gcc -ofoo
foomain.o -L../lib -lfoo1 -lfoo2 -lfoo1 -lfoo2 -lg2c -lc -lgsl -lm
does the trick! The executable links now properly.
Even though it dumps a core on invocation. But here the debugger can help!
thank you so much!
H.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/