Install the Boost library in Visual C++ 2008

空扰寡人 提交于 2019-12-07 09:50:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!