Boost logo

Boost Users :

Subject: Re: [Boost-users] [Test] Problem with autolink
From: John Maddock (john_at_[hidden])
Date: 2010-01-25 04:54:15


> I have been using boost.test with reasonable success, then all of a
> sudden I have a link error. Obviously I have changed something aobut my
> project settings. Perhaps someone could help me identify what I have done.
>
> I am using boost 1.41.0 on msvc 9.0. The linker is looking for
>
> LINK : fatal error LNK1104: cannot open file
> 'boost_unit_test_framework-vc90-mt-gd-1_41.lib'

That's the import lib for the debug-mutithreaded dll build.

> This lib is not built by running bjam. I have tried all manner of bjam
> arguments even:
>
> bjam --build-type=complete
>
> but I only get boost*.dll and libboost*.lib libraries built. I have
> tried adding

Are there no import lib's corresponding to the dll's? There should be one
for each dll but with a .lib suffix.

BTW, after a quick look at the Boost.Test source, it appears you must have
either BOOST_ALL_DYN_LINK or BOOST_TEST_DYN_LINK defined somewhere for that
lib to be searched for.

HTH, John.


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