Hi,
i compiled and installed boost libraries (regex,filesystem) in /usr/lib but ld shows undefined reference. How to solve this? The libs’ directory (libcpp.so.4,libc.so.2) are in LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/usr/lib
# ld libboost_filesystem-qcc-d-1_33_1.so
ld: warning: libcpp.so.4, needed by libboost_filesystem-qcc-d-1_33_1.so, not found (try using -rpath or -rpath-link)
ld: warning: libc.so.2, needed by libboost_filesystem-qcc-d-1_33_1.so, not found (try using -rpath or -rpath-link)
ld: warning: cannot find entry symbol _start; defaulting to 08048240
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `strcpy'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `operator new[](unsigned)'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `__cxa_rethrow'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `sysconf'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `utime'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `strerror'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `stat64'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `memmove'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `std::exception::~exception()'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `std::_String_base::_Xran() const'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `__cxa_call_unexpected'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `std::_String_base::_Xlen() const'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `memcpy'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `readdir_r'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `rmdir'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `operator delete(void*)'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `__cxa_end_catch'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `rename'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `__gxx_personality_v0'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `typeinfo for std::exception'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `write'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `_Unwind_Resume'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `memchr'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `__get_errno_ptr'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `__cxa_pure_virtual'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `read'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `unlink'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `readdir64'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `memcmp'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `lstat64'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `vtable for std::exception'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `vtable for __cxxabiv1::__class_type_info'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `__cxa_throw'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `memset'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `operator delete[](void*)'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `open64'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `opendir'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `strcmp'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `getcwd'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `atexit'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `__cxa_begin_catch'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `__cxa_allocate_exception'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `operator new(unsigned)'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `strlen'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `__assert'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `closedir'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `mkdir'
libboost_filesystem-qcc-d-1_33_1.so: undefined reference to `close'
i am using qnx 6.3.2, and this boost libraries were compiled with bjam and tooset=qcc -V3.3.5,gcc_ntox86. if i use ldd command the results are:
# ldd libboost_filesystem-qcc-d-1_33_1.so
./libboost_filesystem-qcc-d-1_33_1.so:
libboost_filesystem-qcc-d-1_33_1.so => ./libboost_filesystem-qcc-d-1_33_1.so (0xb8200000)
libcpp.so.4 => /lib/libcpp.so.4 (0xb8217000)
why this happens?
thanks