home *** CD-ROM | disk | FTP | other *** search
-
- > >
- > > There seems to be a problem with libm.a (or at least pow.o in libm.a)
-
- Seems to be libm.a ...
-
- > >
- > > cc testpow.c -lm
- > > pow.o: Undefined symbol _log__D referenced from text segment
- > > pow.o: Undefined symbol _exp__D referenced from text segment
- >
- > Sheesh.. include <math.h> please...
-
- I don't think this helps as perl includes math.h and bombs
- nevertheless. I've got another workaround instead of modifying the
- perl-source:
-
- # cd /usr/lib
- # cat >explog.c
- #include <math.h>
- double exp__D(double d){ return exp(d); }
- double log__D(double d){ return log(d); }
- ^D
- # gcc -c explog.c
- # ar vr libm.a explog.o
- # ranlib libm.a
- # rm explog.*
-
- For me this workes fine...
-
-