"undefined symbols" error for the mathematic fuctions

Chenghai Sun csun@steele.mgh.harvard.edu
Fri Nov 7 23:06:00 GMT 2003


Dear gcc-helper,

I tried to compile C codes with gcc on Sparc-Sun-Solaris-2.8.
It returned "undefined symbols" error for the mathematic fuctions, such as
sin, con, sqrt.

I included header <math.h> in code. I think it could not find some libraries
it needed.

I would realy appreciate if you could tell me how to make it work.

Chenghai Sun




More information about the Gcc-help mailing list