问题
I have downloaded Visual C++ 2008 and I also have the Boost library, v. 1.44.0. How to can the Boost library be installed in C++?
I also have Visual C++ 2010.
回答1:
You don't have to "install" Boost in Visual Studio. What you need is to point your IDE (in this case Visual Studio) to the folders which contain the Boost headers and the lib files (if you have built Boost - some Boost libraries are header-only, some need to be built). Take a look at Boost Getting Started for further details.
Quick start:
- start your command prompt and go to the folder in which you have unzipped boost
- execute bootstrap.bat
- execute ".\bjam --build-type=complete stage" - this will build almost everything in Boost.
Note: make sure you have the VC++ compiler and linker in the environment variable PATH
.
来源:https://stackoverflow.com/questions/3529163/install-the-boost-library-in-visual-c-2008