i using boost 1_53 libraries vs10.
getting many unresolved symbols during linking. following:
error lnk2019: unresolved external symbol "void __cdecl boost_1_53_0::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > &,class std::codecvt<unsigned short,char,int> const &)" (?convert@path_traits@filesystem@boost_1_53_0@@yaxpebd0aeav?$basic_string@gu?$char_traits@g@std@@v?$allocator@g@2@@std@@aebv?$codecvt@gdh@5@@z) referenced in function "void __cdecl boost_1_53_0::filesystem::path_traits::convert(char const *,class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > &,class std::codecvt<unsigned short,char,int> const &)" (?convert@path_traits@filesystem@boost_1_53_0@@yaxpebdaeav?$basic_string@gu?$char_traits@g@std@@v?$allocator@g@2@@std@@aebv?$codecvt@gdh@5@@z) i checked /libpath set correctly "boost_1_53_0_filesystem-mt.lib" coming in link line.
used dumpbin find symbol in "lib" coming like:
00000036 rel32 00000000 515 ?convert@path_traits@filesystem@boost_1_53_0@@yaxpebd0aeav?$basic_string@_wu?$char_traits@_w@std@@v?$allocator@_w@2@@std@@aebv?$codecvt@_wdh@5@@z (void __cdecl boost_1_53_0::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,int> const &)) is parameter change causing issue?
edit:
add more details:
using boost 1_48 working fine. found in boost 1_48 symbols under path_traits ends @gdh@5@@z whicle in boost 1_53 ending @_wdh@5@@z
still trying search synbol end @gdh@5@@z
can cause error?
if why taking symbols?
unless you've built every possible permutation of boost libraries, necessary make sure compiler settings match settings used build boost.
the relevant settings are:
- debug vs. release
- statically linked runtime vs. dll
- single-threaded vs. multi-threaded
the name boost_1_53_0_filesystem-mt.lib implies boost libraries built release mode, multi-threaded, dll runtime.
is how you're building project?
Comments
Post a Comment