Linking Boost gives me error

When trying to compile my solution with VS2010 I'm getting a compiler error:
"error LNK1104: cannot open file 'libboost_unit_test_framework-vc100-mt-gd-1_45.lib'"
I've tried to look for this file on hard drive but with no luck.
Why am I getting this error and how can I fix it?

Upvotes: 1

Views: 1201

Answers (2)

willw
willw

Reputation: 1308

Some Boost libraries require building. As robin hood's answer notes, you can download an install with the binaries included, or you can build them yourself (which is slightly fiddly). See http://www.boost.org/doc/libs/1_45_0/more/getting_started/windows.html for an extensive discussion.

Upvotes: 2

Andriy Tylychko
Andriy Tylychko

Reputation: 16276

you need to take precompiled Boost libraries for your system, e.g. from boostpro.com or build Boost yourself. Then add a path to Boost .lib's to your Linker paths

Upvotes: 3

Related Questions