ld behaving strangely?

Charles S. Wilson cwilson@ece.gatech.edu
Tue Nov 30 23:14:00 GMT 1999


I'm trying to compile sxpm from the xpm-3.4k distribution. (I already
compiled the library). However, it seems that there is an undefined
symbol somewhere, because build fails. I'm only guessing about that
because ld is not providing as much information as I'm used to, and I
don't know what's going on. 

Here's the command:
gcc -O -I.. -I/usr/X11R6/include sxpm.o -L../lib -L/usr/X11R6/lib -lXpm
-lXext -lXt -lX11 -o sxpm

The result:
collect2: ld returned 1 exit status
make: *** [sxpm] Error 1

And that's it. No other information. Why isn't it saying "undefined
symbol foo in bar.c" or whatever? If it's not an undefined symbol error,
then how do I find out what the error was? 

I'm using Mumit's gcc-2.95.2-cygb20.tar.gz + gcc-2.95.2-dev-ss.tar.gz,
and his binutils-2.9.4-cygb20.tar.gz on a system with the
cygwin-inst-19991122.tar.gz and cygwin19991123.dll. I am able to compile
other executables and libraries successfully with this configuration.

Thanks for any help,
Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list