在Visual C ++ 2008中安装Boost库 [英] Install the Boost library in Visual C++ 2008

查看:88
本文介绍了在Visual C ++ 2008中安装Boost库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了Visual C ++ 2008,并且还具有1.44.0版的Boost库.如何在C ++中安装Boost库?

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++?

我也有Visual C ++ 2010.

I also have Visual C++ 2010.

推荐答案

您不必在Visual Studio中安装" Boost.您需要将IDE(在本例中为Visual Studio)指向包含Boost头文件和lib文件的文件夹(如果您已构建Boost-一些Boost库仅是头文件,则需要构建一些头文件).看看

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.

快速入门:

  • 启动命令提示符,然后转到已解压boost的文件夹
  • 执行bootstrap.bat
  • 执行.\ bjam --build-type = complete阶段"-这将在Boost中构建几乎所有内容.

注意:确保环境变量PATH中具有VC ++编译器和链接器.

Note: make sure you have the VC++ compiler and linker in the environment variable PATH.

这篇关于在Visual C ++ 2008中安装Boost库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆