bootstrap/4037: Can't link C++ programs to Sun's libsunmath (regression vs. 2.95)
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Sun Feb 24 09:13:00 GMT 2002
Synopsis: Can't link C++ programs to Sun's libsunmath (regression vs. 2.95)
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Feb 24 07:32:10 2002
State-Changed-Why:
Those symbols are not defined in libsunmath.so.
nm libsunmath.so | grep cos
U __cos
They are defined in libm.so, so you need to add:
-libm -libsunmath
to your link line.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4037
More information about the Gcc-bugs
mailing list