unresolved external when building Boost.Thread
OS - Windows7 x64 compiler - MSVC9 Boost version - 1.44 Running the following command fails to build the thread library with the following error: bjam variant=release link=shared threading=multi runtime-link=shared --layout=tagged install thread.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) pu blic: __thiscall boost::gregorian::greg_month::greg_month(unsigned short)" (__im p_??0greg_month@gregorian@boost@@QAE@G@Z) referenced in function "public: __this call boost::gregorian::date::date(enum boost::date_time::special_values)" (??0da te@gregorian@boost@@QAE@W4special_values@date_time@2@@Z) bin.v2\libs\thread\build\msvc-9.0\release\threading-multi\boost_thread-vc90-mt-1 _44.dll : fatal error LNK1120: 1 unresolved externals Removing "--layout=tagged" from the command results in the thread library building successfully, but of course that isn't what I want :)
Kenneth Riddile wrote:
OS - Windows7 x64 compiler - MSVC9 Boost version - 1.44
Running the following command fails to build the thread library with the following error:
bjam variant=release link=shared threading=multi runtime-link=shared --layout=tagged install
thread.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) pu blic: __thiscall boost::gregorian::greg_month::greg_month(unsigned short)" (__im p_??0greg_month@gregorian@boost@@QAE@G@Z) referenced in function "public: __this call boost::gregorian::date::date(enum boost::date_time::special_values)" (??0da te@gregorian@boost@@QAE@W4special_values@date_time@2@@Z) bin.v2\libs\thread\build\msvc-9.0\release\threading-multi\boost_thread-vc90-mt-1
_44.dll : fatal error LNK1120: 1 unresolved externals
Removing "--layout=tagged" from the command results in the thread library building successfully, but of course that isn't what I want :)
Nevermind...this was actually caused by adding "define=BOOST_ALL_DYN_LINK" to the build command instead of just "define=BOOST_TEST_DYN_LINK" which is really all I needed...my mistake.
participants (2)
-
Kenneth Riddile
-
Kenny Riddile