gcc - no messages re unresolved symbols
Richard Stanton
stanton@Haas.Berkeley.EDU
Wed Feb 23 16:47:00 GMT 2000
I'm having an odd problem with gcc (cygwin version 2.95) on my NT machine.
If I compile/link a program that has some unresolved symbols, the linker
doesn't tell me about them, which makes tracking them down more than a
little hard...
For example, here's what happens when I compile a program that has a missing
main():
[c:\miscprog]gcc -o amput amput.c
collect2: ld returned 1 exit status
For comparison, here's what happens when I do the same thing on a unix
(SunOS 5.6) machine:
socrates% gcc -o ttt amput.c -lm
Undefined first referenced
symbol in file
main
/usr/local/egcs-1.1.2/lib/gcc-lib/sparc-su
solaris2.6/egcs-2.91.66/crt1.o
ld: fatal: Symbol referencing errors. No output written to ttt
collect2: ld returned 1 exit status
socrates%
Any idea what's wrong? I'm pretty sure this used to work at one point.
Thanks a lot for any suggestions.
Richard Stanton
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list