Boost logo

Boost-Build :

Subject: [Boost-build] Linker error with filesystem2 on windows
From: Bo Jensen (jensen.bo_at_[hidden])
Date: 2011-04-12 16:01:53


I get the following error on windows with msvc 10 :

sulumcmd.obj : error LNK2019: unresolved external symbol "void __cdecl boost::as
sertion_failed(char const *,char const *,char const *,long)" (?assertion_failed@
boost@@YAXPEBD00J_at_Z) referenced in function "private: class boost::filesystem2::
basic_directory_entry<class boost::filesystem2::basic_path<class std::basic_stri
ng<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,stru
ct boost::filesystem2::wpath_traits> > & __cdecl boost::filesystem2::basic_direc
tory_iterator<class boost::filesystem2::basic_path<class std::basic_string<wchar
_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,struct boost
::filesystem2::wpath_traits> >::dereference(void)const " (?dereference@?$basic_d
irectory_iterator_at_V?$basic_path_at_V?$basic_string@_WU?$char_traits@_W_at_std@@V?$allo
cator@_W_at_2@@std@@Uwpath_traits_at_filesystem2@boost@@@filesystem2_at_boost@@@filesyste
m2_at_boost@@AEBAAEAV?$basic_directory_entry_at_V?$basic_path_at_V?$basic_string@_WU?$cha
r_traits@_W_at_std@@V?$allocator@_W_at_2@@std@@Uwpath_traits_at_filesystem2@boost@@@files
ystem2_at_boost@@@23_at_XZ)
bin\msvc-10.0\debug\address-model-64\threading-multi\sulum.exe : fatal error LNK
1120: 1 unresolved externals
...failed msvc.link bin\msvc-10.0\debug\address-model-64\threading-multi\sulum.e
xe bin\msvc-10.0\debug\address-model-64\threading-multi\sulum.pdb...
...removing bin\msvc-10.0\debug\address-model-64\threading-multi\sulum.pdb
...failed updating 1 target...
...updated 1 target...

Maybe it's just me I don't get how I can get a unresolved symbol on a
only header based function ?

I am linking with both the filesystem and system lib.

Any help appreciated.

/Bo


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk