|
Boost Users : |
Subject: [Boost-users] static linkage of filesystem lib under linux
From: Ottmar Buennemeyer (OBuennemeyer_at_[hidden])
Date: 2008-09-10 06:07:18
Hello,
We have problems with using the static filesystem lib under linux.
We use filesystem as static library in a shard library.
Example:
libfilesystem.a used for shared library libTestBoostStatic.so
No errors during build of library libTestBoostStatic.so.
Afterwards we use libtest.so in the application UseTestBoostStatic.
During the linking of the application we get the following error message:
Invoking: GCC C++ Linker
g++ -L/home/ROSENINSPECTION/AlKeller/src/SDES/Test/TestBoostStatic/Debug -L/usr/lib64 -Wl,-static -lboost_filesystem-mt -lboost_regex-mt -Wl,-call_shared -o"UseTestBoostStatic" ./UseTestBoostStatic.o -lTestBoostStatic
/home/ROSENINSPECTION/AlKeller/src/SDES/Test/TestBoostStatic/Debug/libTestBoostStatic.so: undefined reference to `boost::filesystem::detail::dir_itr_increment(void*&, void*&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, boost::filesystem::file_status&, boost::filesystem::file_status&)'
/home/ROSENINSPECTION/AlKeller/src/SDES/Test/TestBoostStatic/Debug/libTestBoostStatic.so: undefined reference to `boost::filesystem::detail::dir_itr_close(void*&, void*&)'
/home/ROSENINSPECTION/AlKeller/src/SDES/Test/TestBoostStatic/Debug/libTestBoostStatic.so: undefined reference to `boost::filesystem::detail::dir_itr_first(void*&, void*&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, boost::filesystem::file_status&, boost::filesystem::file_status&)'
/home/ROSENINSPECTION/AlKeller/src/SDES/Test/TestBoostStatic/Debug/libTestBoostStatic.so: undefined reference to `boost::filesystem::detail::not_found_error'
collect2: ld returned 1 exit status
make: *** [UseTestBoostStatic] Error 1
We use the boost version 1.34.1
GCC Version: 4.1.2 20061115 (pre release)
What's wrong with our configuration?
Thanks in advance,
Ottmar
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