0
votes

I have successfully built boost using bjam and visual studio 2010 using this command:

bjam --build-dir=c:\boost --build-type=complete --toolset=msvc-10.0 address-model=64 architecture=x86 --with-system

I have also set the stage/lib directory as the lib directory in visual studio.

However, the linker gives me this:

fatal error LNK1104: cannot open file 'libboost_filesystem-vc90-mt-gd-1_50.lib'

Why is it looking for 'vc90' versions of the libraries? the vc100 version is there in the directory.. how do I change that?

Thanks.

2
Answered here: stackoverflow.com/questions/19817163/… Very annoying feature... - sebesbal

2 Answers

0
votes

You can explicitly specify the paths to the libraries in project settings. First you need to include the library names that you want to link against in your project.

Adding libs

Now we have to specify the directories, where the libraries specified above can be found.

Specifying directories where the libraries from the previous image are

I hope, that helps.

0
votes

Check the compiler setting (You have choices for vc90 (2008), vc100 (2010)) in your project's properties.