Boost logo

Boost-Build :

Subject: Re: [Boost-build] [cmake][findboost] Linking against Boost libraries with tagged name-layout
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-03-03 11:56:32


On 03/03/2015 01:10 AM, Arindam Mukherjee wrote:
> I am trying to use CMake (v to generate a Visual Studio 2013
> solution file for projects that link to Boost libraries.
> 1. I have used find_package with FindBoost to locate the Boost
> libraries - this succeeds.
> 2. I am defining BOOST_ALL_DYN_LINK and BOOST_AUTO_LINK_TAGGED using
> add_definitions. The latter is being used because my Boost libraries
> have tagged name-layout.
> 3. I also used link_directories trying to tell Visual Studio where to
> look for the libraries.
> I still get linker errors for unresolved symbols from these libraries.
> Where do I need to look?

I don't see anything obviously wrong with your setup.
Can you show a sample of the compile and link command
lines that CMake generates? In particular, I'd like
to make sure that CMake is not adding -DBOOST_ALL_NO_LIB,
which disables auto-linking.

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at