From: Arjen M. <arj...@wl...> - 2007-06-01 06:30:21
|
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 |