[1.35] LINK problems since I switch to wpath
Hi,
I'm still using Boost 1.35 on VC++ 2005
I had a code very well building and linking, only I had some charset
problems at display.
That's why I decided to switch my code to UNICODE (or like) switching all
the
std::string -> std::wstring
In the area of boost, I also switched all the
boost::filesystem::path -> boost::filesystem::wpath
that was a long job, many particular cases were found for example, problemes
with :
boost::filesystem::exists
boost::filesystem::current_path
boost::filesystem::initial_path
That I commented to compile.
Here comes my main question !!!!
Now I have some LINK problems. The librairy very well worked before, but no
more now.
See the error logs at the end.
According to the linking log, here are the names of the libs I use (as you
can see, that are STATIC Multi thread libs and that is what I want) :
libboost_filesystem-vc80-mt-sgd-1_35.lib
libboost_system-vc80-mt-sgd-1_35.lib
libboost_thread-vc80-mt-sgd-1_35.lib
libboost_date_time-vc80-mt-sgd-1_35.lib
The link problems are on :
boost::filesystem::detail::status_api
boost::filesystem::detail::dir_itr_increment
boost::filesystem::detail::dir_itr_first
Error logs :
Error 2 error LNK2019: unresolved external symbol "class
boost::filesystem::file_status __cdecl
boost::filesystem::detail::status_api(class std::basic_string ,struct boost::filesystem::wpath_traits> >(class
boost::filesystem::basic_path Error 3 error LNK2001: unresolved external symbol "class
boost::filesystem::file_status __cdecl
boost::filesystem::detail::status_api(class std::basic_string ,struct boost::filesystem::wpath_traits> >::increment(void)" (?increment@
?$basic_directory_iterator@V?$basic_path@V?$basic_string@GU?$char_traits@G
@std@@V?$allocator@G@2@@std@@Uwpath_traits@filesystem@boost@
@@filesystem@boost@@@filesystem@boost@@AAEXXZ) Patch.obj Error 5 error LNK2019: unresolved external symbol "class
boost::system::error_code __cdecl
boost::filesystem::detail::dir_itr_first(void * &,class
std::basic_string ,struct boost::filesystem::wpath_traits> >::m_init(class
boost::filesystem::basic_path
Germain BARRET wrote:
Hi,
I'm still using Boost 1.35 on VC++ 2005
I had a code very well building and linking, only I had some charset problems at display. That's why I decided to switch my code to UNICODE (or like) switching all the std::string -> std::wstring In the area of boost, I also switched all the boost::filesystem::path -> boost::filesystem::wpath
It looks like the filesystem libs are built with /Zc:wchar_t where as you are building with /Zc:wchar_t- and I'm afraid never the twain shall meet :-( Are you able to turn on /Zc:wchar_t in your project settings? HTH, John.
participants (2)
-
Germain BARRET
-
John Maddock