Boost logo

Boost Users :

Subject: [Boost-users] Boost.Filesystem with MSVC8 & STLPort linker errors
From: Craig Henderson (cdm.henderson_at_[hidden])
Date: 2009-06-12 10:12:09


Hi,

I have an application using Boost.Filesystem, Boost.Thread and others, that
I am building on Windows XP using MSVC8, STLPort and Boost 1.39.0. I have
built Boost using Boost Jam 3.1.17 and STLPort. Using the MSVC native STL I
get no errors and everything runs well, but with the STL version, I have
four linker errors; all from Boost.Filesystem.

Has anyone come across this problem before and found a solution, or give me
a clue what might be wrong?

Many thanks
-- Craig
 
1>fsdatasource.obj : error LNK2019: unresolved external symbol "class
boost::filesystem::file_status __cdecl
boost::filesystem::detail::status_api(class
stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class
stlpd_std::allocator<char> > const &,class boost::system::error_code &)"
(?status_api_at_detail@filesystem_at_boost@@YA?AVfile_status_at_23@ABV?$basic_string@
DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@AAVerror_code_at_syst
em_at_3@@Z) referenced in function "bool __cdecl
boost::filesystem::is_directory<class boost::filesystem::basic_path<class
stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class
stlpd_std::allocator<char> >,struct boost::filesystem::path_traits> >(class
boost::filesystem::basic_path<class stlpd_std::basic_string<char,class
stlpd_std::char_traits<char>,class stlpd_std::allocator<char> >,struct
boost::filesystem::path_traits> const &)"
(??$is_directory_at_V?$basic_path_at_V?$basic_string_at_DV?$char_traits_at_D@stlpd_std@@
V?$allocator_at_D@2@@stlpd_std@@Upath_traits_at_filesystem@boost@@@filesystem_at_boos
t@@@filesystem_at_boost@@YA_NABV?$basic_path_at_V?$basic_string_at_DV?$char_traits_at_D@
stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@Upath_traits_at_filesystem@boost@@@01@@
Z)
 
1>fsdatasource.obj : error LNK2019: unresolved external symbol "class
boost::system::error_code __cdecl
boost::filesystem::detail::dir_itr_increment(void * &,class
stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class
stlpd_std::allocator<char> > &,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_AAPAXA
AV?$basic_string_at_DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@A
AVfile_status_at_23@2_at_Z) referenced in function "private: void __thiscall
boost::filesystem::basic_directory_iterator<class
boost::filesystem::basic_path<class stlpd_std::basic_string<char,class
stlpd_std::char_traits<char>,class stlpd_std::allocator<char> >,struct
boost::filesystem::path_traits> >::increment(void)"
(?increment@?$basic_directory_iterator_at_V?$basic_path_at_V?$basic_string_at_DV?$cha
r_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@Upath_traits_at_filesystem@b
oost@@@filesystem_at_boost@@@filesystem_at_boost@@AAEXXZ)
 
1>fsdatasource.obj : error LNK2019: unresolved external symbol "class
boost::system::error_code __cdecl
boost::filesystem::detail::dir_itr_first(void * &,class
stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class
stlpd_std::allocator<char> > const &,class
stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class
stlpd_std::allocator<char> > &,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_DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@AAV67
@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 stlpd_std::basic_string<char,class
stlpd_std::char_traits<char>,class stlpd_std::allocator<char> >,struct
boost::filesystem::path_traits> >::m_init(class
boost::filesystem::basic_path<class stlpd_std::basic_string<char,class
stlpd_std::char_traits<char>,class stlpd_std::allocator<char> >,struct
boost::filesystem::path_traits> const &)"
(?m_init@?$basic_directory_iterator_at_V?$basic_path_at_V?$basic_string_at_DV?$char_t
raits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@Upath_traits_at_filesystem@boos
t@@@filesystem_at_boost@@@filesystem_at_boost@@AAE?AVerror_code_at_system@3_at_ABV?$basi
c_path_at_V?$basic_string_at_DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_
std@@Upath_traits_at_filesystem@boost@@@23@@Z)
 
1>fsdatasource.obj : error LNK2019: unresolved external symbol "class
boost::system::error_code __cdecl
boost::filesystem::detail::remove_api(class
stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class
stlpd_std::allocator<char> > const &)"
(?remove_api_at_detail@filesystem_at_boost@@YA?AVerror_code_at_system@3_at_ABV?$basic_st
ring_at_DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@@Z)
referenced in function "bool __cdecl
boost::filesystem::detail::remove_aux<class
boost::filesystem::basic_path<class stlpd_std::basic_string<char,class
stlpd_std::char_traits<char>,class stlpd_std::allocator<char> >,struct
boost::filesystem::path_traits> >(class boost::filesystem::basic_path<class
stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class
stlpd_std::allocator<char> >,struct boost::filesystem::path_traits> const
&,class boost::filesystem::file_status)"
(??$remove_aux_at_V?$basic_path_at_V?$basic_string_at_DV?$char_traits_at_D@stlpd_std@@V?
$allocator_at_D@2@@stlpd_std@@Upath_traits_at_filesystem@boost@@@filesystem_at_boost@
@@detail_at_filesystem@boost@@YA_NABV?$basic_path_at_V?$basic_string_at_DV?$char_trai
ts_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@Upath_traits_at_filesystem@boost@@
@12_at_Vfile_status_at_12@@Z)



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