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 188.8.131.52) 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.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk