2015-07-03 23:12 GMT+03:00 Fletcher, John P
I am getting errors like this and the link fails.
/tmp/getting_started-f60894.o: In function `shared_lib_path(boost::filesystem::path const&, std::__1::basic_string
, std::__1::allocator > const&)': getting_started.cpp:(.text+0x217c): undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::__1::basic_string &)' getting_started.cpp:(.text+0x222a): undefined reference to `boost::filesystem::path_traits::convert(char const*, char const*, std::__1::basic_string , std::__1::allocator >&, std::__1::codecvt const&)' getting_started.cpp:(.text+0x2544): undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::__1::basic_string &)' How do I resolve these errors related to boost::filesystem::path_traits ?
It looks like you have Boost headers and libraries of different versions. Try to recompile the boost_filesystem library. Simplest way to run tests is to: cd boost_checkout_location ./bootstrap.sh # on Windows use bootstrap.bat cd libs git clone https://github.com/apolukhin/Boost.DLL dll cd dll/test ../../../b2 -a # here `-a` will force the rebuild of dependent libraries, including boost_filesystem -- Best regards, Antony Polukhin