Boost logo

Boost Users :

Subject: [Boost-users] unresolved external when building Boost.Thread
From: Kenneth Riddile (kfriddile_at_[hidden])
Date: 2010-08-25 08:16:34


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_at_gregorian@boost@@QAE_at_G@Z) referenced in function
"public: __this
call boost::gregorian::date::date(enum
boost::date_time::special_values)" (??0da
te_at_gregorian@boost@@QAE_at_W4special_values_at_date_time_at_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 :)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net