This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

Re: undefined reference to '_...


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/


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