Fernando Faria
Fernando Faria

Reputation: 1

boost linking with visual studio 2010

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.

Upvotes: 0

Views: 1196

Answers (2)

Raja
Raja

Reputation: 3106

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

Upvotes: 0

Maksim Skurydzin
Maksim Skurydzin

Reputation: 10541

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.

Upvotes: 1

Related Questions