delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/15/21:34:00

From: Jeff Weeks <pweeks AT execulink DOT com>
Newsgroups: comp.os.msdos.djgpp,alt.os.linux
Subject: C++ Problems (GCC)
Date: Thu, 11 Sep 1997 21:35:22 -0400
Organization: Code X Software
Lines: 36
Message-ID: <34189C5A.50E3039A@execulink.com>
NNTP-Posting-Host: ppp9.mars.execulink.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've got yet another problem with C++ and GCC here.  I have written a
small 3D library type thing (:) which worked fine in DJGPP, but when I
ported it over to Linux I've all of a sudden run into problems.  When I
compile I get the following errors:

/lib/libstdc++.so: undefined reference to 'fabs'
/lib/libstdc++.so: undefined reference to 'log'
/lib/libstdc++.so: undefined reference to 'sqrt'
/lib/libstdc++.so: undefined reference to 'cosh'
/lib/libstdc++.so: undefined reference to 'cos'
/lib/libstdc++.so: undefined reference to 'sin'
/lib/libstdc++.so: undefined reference to 'atan2'
/lib/libstdc++.so: undefined reference to 'sinh'
/lib/libstdc++.so: undefined reference to 'exp'
/lib/libstdc++.so: undefined reference to 'hypot'

Those are all math functions, BUT I'm including math.h AND I'm linking
with libm!!!  What the hell else have I forgotten? :)

PLEASE help me out here.  I'm been trying my hardest to get some
portable 3D code going, but, as you can see, not everything is working
out as planned!

Thanks a lot,
Jeff

PS: As with my other message, it would be perfered if you could respond
via email if possible.

--------------------------------------------
            - Code X Software -
       Programming to a Higher Power
  
  email: mailto:pweeks AT execulink DOT com
  web:	 http://www.execulink.com/~pweeks/
--------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019