gcc 2.95 problem finding MATH libraries...

Howard C. Smith HCSmith@itt.com
Fri Oct 1 00:00:00 GMT 1999


folks:

i have gcc 2.95 installed on Sunos5.6. The install went clean,
however compiling a trivial program that calls sqrt, gives
the following error:

% cc -o math math.c
/usr/tmp/ccDTNbJj.o(.text+0x20): undefined reference to `sqrt'
collect2: ld returned 1 exit status

did something change in how you link standard libraries in 2.95??

thanks,

howard smith





More information about the Gcc-help mailing list