Boost logo

Boost Users :

Subject: [Boost-users] [1.35] LINK problems since I switch to wpath
From: Germain BARRET (germain.barret_at_[hidden])
Date: 2008-10-16 03:40:51


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<unsigned
short,struct std::char_traits<unsigned short>,class std::allocator<unsigned
short> > const &,class boost::system::error_code &)" (?status_api_at_detail
@filesystem_at_boost@@YA?AVfile_status_at_23@ABV?$basic_string_at_GU?$char_traits_at_G
@std@@V?$allocator_at_G@2@@std@@AAVerror_code_at_system@3@@Z) referenced in
function "bool __cdecl boost::filesystem::is_regular<class
boost::filesystem::basic_path<class std::basic_string<unsigned short,struct
std::char_traits<unsigned short>,class std::allocator<unsigned short>
>,struct boost::filesystem::wpath_traits> >(class
boost::filesystem::basic_path<class std::basic_string<unsigned short,struct
std::char_traits<unsigned short>,class std::allocator<unsigned short>
>,struct boost::filesystem::wpath_traits> const &)" (??$is_regular_at_V
?$basic_path_at_V?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@
@Uwpath_traits_at_filesystem@boost@@@filesystem_at_boost@@@filesystem_at_boost
@@YA_NABV?$basic_path_at_V?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G
@2@@std@@Uwpath_traits_at_filesystem@boost@@@01@@Z) DirectoryInfoManager.obj

Error 3 error LNK2001: unresolved external symbol "class
boost::filesystem::file_status __cdecl
boost::filesystem::detail::status_api(class std::basic_string<unsigned
short,struct std::char_traits<unsigned short>,class std::allocator<unsigned
short> > const &,class boost::system::error_code &)" (?status_api_at_detail
@filesystem_at_boost@@YA?AVfile_status_at_23@ABV?$basic_string_at_GU?$char_traits_at_G
@std@@V?$allocator_at_G@2@@std@@AAVerror_code_at_system@3@@Z) Patch.obj

Error 4 error LNK2019: unresolved external symbol "class
boost::system::error_code __cdecl
boost::filesystem::detail::dir_itr_increment(void * &,class
std::basic_string<unsigned short,struct std::char_traits<unsigned
short>,class std::allocator<unsigned short> > &,class
boost::filesystem::file_status &,class boost::filesystem::file_status &)"
(?dir_itr_increment_at_detail@filesystem_at_boost@@YA?AVerror_code_at_system
@3_at_AAPAXAAV?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@
@AAVfile_status_at_23@2_at_Z) referenced in function "private: void __thiscall
boost::filesystem::basic_directory_iterator<class
boost::filesystem::basic_path<class std::basic_string<unsigned short,struct
std::char_traits<unsigned short>,class std::allocator<unsigned short>
>,struct boost::filesystem::wpath_traits> >::increment(void)" (?increment@
?$basic_directory_iterator_at_V?$basic_path_at_V?$basic_string_at_GU?$char_traits_at_G
@std@@V?$allocator_at_G@2@@std@@Uwpath_traits_at_filesystem@boost@
@@filesystem_at_boost@@@filesystem_at_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<unsigned short,struct std::char_traits<unsigned
short>,class std::allocator<unsigned short> > const &,class
std::basic_string<unsigned short,struct std::char_traits<unsigned
short>,class std::allocator<unsigned short> > &,class
boost::filesystem::file_status &,class boost::filesystem::file_status &)"
(?dir_itr_first_at_detail@filesystem_at_boost@@YA?AVerror_code_at_system@3_at_AAPAXABV
?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@
@AAV67_at_AAVfile_status_at_23@3_at_Z) referenced in function "private: class
boost::system::error_code __thiscall
boost::filesystem::basic_directory_iterator<class
boost::filesystem::basic_path<class std::basic_string<unsigned short,struct
std::char_traits<unsigned short>,class std::allocator<unsigned short>
>,struct boost::filesystem::wpath_traits> >::m_init(class
boost::filesystem::basic_path<class std::basic_string<unsigned short,struct
std::char_traits<unsigned short>,class std::allocator<unsigned short>
>,struct boost::filesystem::wpath_traits> const &)" (?m_init@
?$basic_directory_iterator_at_V?$basic_path_at_V?$basic_string_at_GU?$char_traits_at_G
@std@@V?$allocator_at_G@2@@std@@Uwpath_traits_at_filesystem@boost@
@@filesystem_at_boost@@@filesystem_at_boost@@AAE?AVerror_code_at_system@3_at_ABV
?$basic_path_at_V?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@
@Uwpath_traits_at_filesystem@boost@@@23@@Z) Patch.obj



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net