Reaversword
Reaversword

Reputation: 167

Boost library working on Visual Studio 2015

I'm having problems with "boost library" usage for Visual Studio 2015. I have Common Tools installed, followed this video instructions:

https://www.youtube.com/watch?v=GOhHMS4I9Zw

(Basically, unzip boost, in visual studio prompt, execute, boostrap.bat, b2.exe, and in visual studio project properties, in C/C++>General>Additional Include Directories, the root of boost folder, and in Linker>General>Aditional Library Directories, "boost root"/stage/lib".

But after that, using the example of boost documentation, Visual Studio is unable to search in the boost folder. If I write the include sentence with global path (C:/...), it finds it, but all other boost files have relative paths!.

So, what am I doing wrong?. What I need to do to get Visual Studio working with boost library?

Upvotes: 3

Views: 3069

Answers (4)

Phil
Phil

Reputation: 53

Yes, make sure you select 'All Configurations' in the 'Configuration' combo box when the project properties window shows up. That will apply the settings for the 'Include Directories' to all config.

Upvotes: 1

sdy7
sdy7

Reputation: 125

Edited.

I had the same problem, but what cheated me was the configurations. When the solution was set to active on "Release" and "x64", then when opening properties in the C++ project under the solution, it could be "Debug" instead and hence missed to set the right properties for the target.

Upvotes: -1

Reaversword
Reaversword

Reputation: 167

Well, after some research, I still can't figure out what's really happening.

I've installed Visual Studio 2015 in Windows 10 machine, and make boost libraries work has been pretty straightforward. After that, in my regular machine, I've installed Visual Studio 2013 (last version), and one more time, has been incredibly simple to get boost libraries working on it.

So, if anybody happens the same, and simply he/she is unable to get Visual Studio 2015 working with boost libraries, perhaps he/she can make a try with the last version of Visual Studio 2013 (Update 5, VS2013.5), here:

https://www.visualstudio.com/news/vs2013-update5-vs

Anyway, would be great to know about his/her case/machine/os/etc... for if it'd be possible to discover what's happening and why it isn't working.

Upvotes: 0

Johan Lundberg
Johan Lundberg

Reputation: 27038

Add the absolute path of the installed boost includes at

project properties / VC++ Directories / Include Directories

$(VC_IncludePath);$(WindowsSDK_IncludePath);SOME_PATH_HERE

Upvotes: 0

Related Questions