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