Compiling and configuring Boost C++ libraries for Visual Studio 2010
Why Stack Overflow recommends it
Stack Overflow users link it when answering or asking about getting Boost built, linked and configured in Visual Studio, especially VS 2010.
Recommended by 3 people across 3 different months, 2011 to 2018.
What it is
A short screencast by Christophe Hesters showing how to compile the Boost C++ libraries with the VC++ 10.0 toolchain and then configure Visual Studio 2010 so Boost can be used in your own C++ projects. Sample source code is available for download.
What people said
Recommends Christophe · 2011-01 · Stack Overflow · on “Using Boost on Windows (Visual Studio)”
For everyone who reads this and is still finding out a way how to do it, I created a video tutorial for building and configuring boost with VS 2010 [this video]
Recommends lightw8 · 2015-03 · Stack Overflow · on “vc++ vs2013 code with boost powered by nuget does not build”
^ this worked great for me, thanks. The second half of this video was helpful to me to then set up my Visual Studio environment: [this video]
Recommends J.D · 2018-08 · Stack Overflow · on “C++ Boost not found file”
I'm trying to use variant from boost and I'm receiving this error: fatal error C1083: Cannot open include file: 'boost/variant.hpp': No such file or directory I've included the files in project properties. [LINK] In the Reference Directories and Library Directories I've tried also with "...\lib" "....\stage\lib" And also in the Include Directories I've tried also with: "...\boost_1_68_0" "...\boost_1_68_0\boost" In the beginning, I used D:\Libs\boost_1_68_0\libs and because it didn't work I've compiled boost and I've tried with D:\Libs\boost_1_68_0\stage\lib after that. But it didn't work out. Also, I should say that I've tried this in VisualStudio2010 and also in 2015 and I've followed this
Cites flibledish · 2012-06 · Stack Overflow · on “Difficulty Adding .Lib files in VS 2010 C# Forms Application”
To start, I'm pretty rusty in programming. I'm trying to link an external library (FFMpeg) to my C# forms application in VS 2010, and I'm having difficulty. All signs point to using "Property Sheets" but mine looks more empty than everyone elses in the examples I've found online (such as [this video] ). This is what mine looks like: [LINK] . Is there something I've been doing wrong, or did I mess up my property sheets in the past and now I'm suffering the consequences? Please help. Thanks in advance.
Cites user1075940 · 2012-10 · Stack Overflow · on “boost function and bind external symbol”
I need to use bind and function in my program.But unfortunately vs2010 can't link my program. I used following example from boost::bind documentation #include <boost\bind.hpp> #include <boost\function.hpp> #include <functional> class button { public: boost::function<void()> onClick; }; class player { public: void play(); void stop(); }; button playButton, stopButton;player thePlayer; void connect() { playButton.onClick = boost::bind(&player::play, &thePlayer); stopButton.onClick = boost::bind(&player::stop, &thePlayer); } void main(int argc, char* argv[]) { connect(); } Error 1 error LNK2019: unresolved external symbol "public: void __thiscall player::stop(void)" (?stop@player@@QAEXXZ) refer
Cites Huá dé ní 華得尼 · 2013-06 · Stack Overflow · on “Boost library error in Windows 7 64-bit”
I have correctly compiled Boost for Windows 8 with VS-10 as given in this link [this video] . My project works fine. But when I copy the project to another Windows 7 machine it returns an error message as "The application was unable to start correctly (0xc000007b). Click OK to close this application.". I have correctly installed Boost in the second PC as well. Both PCs are 64-bit and I installed 32-bit Boost in both. As I found from some links this is because the project try dynamically linking 64-bit libraries instead 32-bit. Could you kindly advice how to build this as a portable solution. Thanks in advance. Update 1: Following is the dependency walker output.
Cites andrew · 2013-07 · Stack Overflow · on “How to use Boost in Visual Studio 2010”
Download boost from: [LINK] e.g. by svn Windows -> tortoise (the simplest way) After that : cmd -> go to boost directory ("D:\boostTrunk" - where You checkout or download and extract package): command : bootstrap we created bjam.exe in ("D:\boostTrunk") After that : command : bjam toolset=msvc-10.0 variant=debug,release threading=multi link=static (It will take some time ~20min.) After that: Open Visual studio 2010 -> create empty project -> go to project properties -> set: Paste this code and check if it is working? #include <iostream> #include <boost/shared_ptr.hpp> #include <boost/regex.hpp> using namespace std; struct Hello { Hello(){ cout << "Hello constructor" << endl; } ~Hello(){ cout