|
Boost Users : |
From: Bill Nortman (BNortman_at_[hidden])
Date: 2007-12-06 16:33:50
We are moving a windows JNI library to the Linux work.... Yahoo..
We used the boost library for some of our work and we have it compiling
under Eclipse C/C++ (g++) without errors.
The Problem is....When I run ldd -r AliveJNI.so... I get a bunch of
"Undefined Symbols" for the boost library. I want them to be linked in
statically so I only have to ship one file with my product. What am I
doing wrong. The linker isn't complaining, but when I call it or use ldd
I get undefined symbols.
<OUTPUT FROM LDD BELOW>
[root_at_localhost Debug]# ldd -r AliveJNI.so
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000002a956d5000)
libm.so.6 => /lib64/tls/libm.so.6 (0x0000002a958c6000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000002a95a4c000)
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a95b57000)
/lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)
undefined symbol: _ZTIN5boost10lock_errorE (./AliveJNI.so)
undefined symbol: _ZN5boost10lock_errorD1Ev (./AliveJNI.so)
undefined symbol: _ZN5boost5mutex7do_lockEv (./AliveJNI.so)
undefined symbol: _ZN5boost10filesystem6detail10status_apiERKSsRi
(./AliveJNI.so)
undefined symbol: aio_read (./AliveJNI.so)
undefined symbol:
_ZN5boost10filesystem6detail20create_directory_apiERKSs
(./AliveJNI.so)
undefined symbol: aio_error (./AliveJNI.so)
undefined symbol:
_ZN5boost10filesystem12wpath_traits11to_externalERKNS0_10basic_pathISbIw
St11char_traitsIwESaIwEES1_EERKS6_ (./AliveJNI.so)
undefined symbol: crcInit (./AliveJNI.so)
undefined symbol: _ZN5boost5mutexC1Ev (./AliveJNI.so)
undefined symbol: crcFast (./AliveJNI.so)
undefined symbol: _ZN5boost10lock_errorC1Ev (./AliveJNI.so)
undefined symbol: aio_return (./AliveJNI.so)
undefined symbol: aio_write (./AliveJNI.so)
undefined symbol: _ZN5boost5mutex9do_unlockEv (./AliveJNI.so)
undefined symbol: _ZN5boost5mutexD1Ev (./AliveJNI.so)
[root_at_localhost Debug]#
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net