Boost logo

Boost :

From: Alexander Arhipenko (arhipjan_at_[hidden])
Date: 2008-04-07 10:41:37


Guys, we've got an issue while upgrading to release 1.35 of boost libraries.
Since boost::filesystem now depends on boost::system, following list of linker
errors appears ONLY on windows platform (VC9 compiler is used):

source.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) class boost::system::error_category const & __cdecl
boost::system::get_system_category(void)"
 (__imp_?get_system_category_at_system@boost@@YAABVerror_category_at_12@XZ)
 referenced in function
"public: __thiscall boost::system::error_code::error_code(void)"
(??0error_code_at_system@boost@@QAE_at_XZ)
source.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) class boost::system::error_category const &
__cdecl boost::system::get_posix_category(void)"
(__imp_?get_posix_category_at_system@boost@@YAABVerror_category_at_12@XZ)
referenced in function
"void __cdecl boost::system::`dynamic initializer for 'posix_category''(void)"
(??__Eposix_category_at_system@boost@@YAXXZ)
..\bin\bsys\msvc-8.0\debug\threading-multi\use_boost_filesystem.dll :
fatal error LNK1120: 2 unresolved externals

In attach there is a minimal project (source.cpp + Jamfile) that
reproduces the problem and
a patch that fixes the problem.

Thanks, waiting for your feedback

Sasha





Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk