Boost logo

Boost Users :

Subject: Re: [Boost-users] Visual C++ 11 cannot find Boost unit_test_framework library in CMake generated project
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-04-05 09:52:44


AMDG

On 04/04/2013 10:38 AM, Emre Åžahin wrote:
> <snip>
> However, when I build one of the targets, I get
>
> 2>LINK : fatal error LNK1104: cannot open file
> 'boost_unit_test_framework-vc110-mt-gd-1_53.lib'
>
> I removed another Boost library and from the error it seems the linker is
> able to find others. (like `chrono` or `serialization`.) But the error
> message is a bit different. The filename has _lib_ in front of it.
>
> 2>LINK : fatal error LNK1104: cannot open file
> 'libboost_serialization-vc110-mt-gd-1_53.lib'
>
> Why does VC++ looks for a file prefixed with **boost** and not **libboost**
> for unit_test_framework?
>

boost_* is the import library for the DLL. If it's
not on the command line, then it must be getting
picked up by auto-linking. Since you aren't
using auto-linking, make sure that all sources
are compiled with -DBOOST_ALL_NO_LIB.

In Christ,
Steven Watanabe


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