Alan W. Irwin wrote:

On 2007-05-31 17:32+0900 Valery Pipin wrote:

BTW, I have others warnings like
Verifying ELF objects in /home/vv/tmp/plplot-buildroot
(arch=normal,fhs=normal,rpath=normal,stack=normal,textrel=relaxed,unresolved=relaxed)
verify-elf: WARNING: ./usr/lib/libcsirocsa.so.0.0.1: undefined symbol: sqrt
verify-elf: WARNING: ./usr/lib/libcsirocsa.so.0.0.1: undefined symbol: floor
verify-elf: WARNING: ./usr/lib/libcsirocsa.so.0.0.1: undefined symbol: ceil
verify-elf: WARNING: ./usr/lib/libcsirocsa.so.0.0.1: undefined symbol: hypot

Does it mean that libcsirocsa is compiled without -lm ?

Thanks for pointing out this build bug which I have just verified for myself
using 'ldd -r libcsirocsa.so'.

Now fixed in svn (revision 7698).

To answer your original question: C libraries that use the math functions require the math library (-lm) to be explicitly specified when linking. At least that is the traditional way on UNIX and Linux (no idea
why this should be so, but it is).

Regards,

Arjen
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to