|
Boost Users : |
Subject: Re: [Boost-users] unresolved external when building Boost.Thread
From: Kenny Riddile (kfriddile_at_[hidden])
Date: 2010-08-25 13:00:06
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_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 :)
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.
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