Boost filesystem path 链接报错
error LNK2019: unresolved external symbol "private: static class stlpd_std::codecvt<wchar_t,char,int> const * & __cdecl boost::filesystem3::path::wchar_t_codecvt_facet(void)" (?wchar_t_codecvt_facet@path@filesystem3@boost@@CAAAPBV?$codecvt@_WDH@stlpd_std@@XZ) referenced in function "public: static class stlpd_std::codecvt<wchar_t,char,int> const & __cdecl boost::filesystem3::path::codecvt(void)" (?codecvt@path@filesystem3@boost@@SAABV?$codecvt@_WDH@stlpd_std@@XZ)
1>Test.obj : error LNK2019: unresolved external symbol "void __cdecl boost::filesystem3::path_traits::convert(char const *,char const *,class stlpd_std::basic_string<wchar_t,class stlpd_std::char_traits<wchar_t>,class stlpd_std::allocator<wchar_t> > &,class stlpd_std::codecvt<wchar_t,char,int> const &)" (?convert@path_traits@filesystem3@boost@@YAXPBD0AAV?$basic_string@_WV?$char_traits@_W@stlpd_std@@V?$allocator@_W@2@@stlpd_std@@ABV?$codecvt@_WDH@5@@Z) referenced in function "void __cdecl boost::filesystem3::path_traits::dispatch<class stlpd_std::basic_string<wchar_t,class stlpd_std::char_traits<wchar_t>,class stlpd_std::allocator<wchar_t> > >(class stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class stlpd_std::allocator<char> > const &,class stlpd_std::basic_string<wchar_t,class stlpd_std::char_traits<wchar_t>,class stlpd_std::allocator<wchar_t> > &,class stlpd_std::codecvt<wchar_t,char,int> const &)" (??$dispatch@V?$basic_string@_WV?$char_traits@_W@stlpd_std@@V?$allocator@_W@2@@stlpd_std@@@path_traits@filesystem3@boost@@YAXABV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAV?$basic_string@_WV?$char_traits@_W@stlpd_std@@V?$allocator@_W@2@@4@ABV?$codecvt@_WDH@4@@Z)
我的Boost 版本是1.47,
比如 我 path p("c:/test.txt")
就会出现上述错误,谁能帮帮我啊?
[解决办法]
去掉stlport。vc2008不需要使用stlport,用了反而混乱