|
Boost : |
Subject: Re: [boost] Boost.DLL formal review is ongoing
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2015-07-04 05:19:58
2015-07-03 23:12 GMT+03:00 Fletcher, John P <j.p.fletcher_at_[hidden]>:
> 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<wchar_t, std::__1::char_traits<wchar_t>,
> std::__1::allocator<wchar_t> > const&)':
> getting_started.cpp:(.text+0x217c): undefined reference to
> `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry
> const&, std::__1::basic_string<char, std::__1::char_traits<char>,
> std::__1::allocator<char> >&)'
> getting_started.cpp:(.text+0x222a): undefined reference to
> `boost::filesystem::path_traits::convert(char const*, char const*,
> std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>,
> std::__1::allocator<wchar_t> >&, std::__1::codecvt<wchar_t, char,
> __mbstate_t> const&)'
> getting_started.cpp:(.text+0x2544): undefined reference to
> `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry
> const&, std::__1::basic_string<char, std::__1::char_traits<char>,
> std::__1::allocator<char> >&)'
>
> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk