boostorg/filesystem

undefined reference to `boost::filesystem::path::filename_v3() const'

2246sam20 opened this issue · 1 comments

I am trying to link boost libraries to my application but m getting this error
I have successfully compiled boost for my system and got the .so files after compiling for my system to link to my project
Below are the flags and linking options am using

USER_CPP_OPTS = -O2 -Wall -ffunction-sections -fdata-sections -flto -fvisibility=hidden -fvisibility-inlines-hidden -std+=c++11
USER_LINK_OPTS = -pie -Wl,-z,relro -Wl,--verbose -lboost_thread -lboost_graph -lboost_filesystem -lboost_system

undefined reference to `boost::filesystem::path::filename_v3() const'
 undefined reference to `boost::filesystem::detail::create_directory(boost::filesystem::path const&, boost::filesystem::path const*, boost::system::error_code*)'

Any help will be appreciated.

path::filename_v3 is present in the library, so my guess is that you're linking against libraries from a different Boost version. Are you missing the -L link option?