[CMake] Unable to locate boost_unit_test_framework-vc90-mt-gd-1_45.lib

Mathias Gaunard mathias.gaunard at ens-lyon.org
Sun Aug 14 04:34:57 EDT 2011


On 08/12/2011 03:48 PM, Stephen Torri wrote:
> Using Mathias and Fraser's guidance I made the changes to the
> CMakeLists.txt file for the test directory.

-DBOOST_ALL_NO_LIB is how I would have fixed it, but I guess that should 
work.


> That removed the error
> that but now I have 9 unresolved external symbols even though the
> boost unit test framework library is listed in the Linker options for
> the test executable. Is this more of a problem with how I built Boost
> than a CMake issue?

You didn't link test with mycode.


> The Boost lib directory only has .lib files in it.
> I guess those are static libraries.

As I already told you, ".lib" is both for static and import libraries 
(what you have to link against to use a DLL).
This is not CMake-specific, this is a windows thing.


More information about the CMake mailing list