使用Boost和Visual Studio [英] Using Boost and Visual Studio

查看:196
本文介绍了使用Boost和Visual Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的确看到了一些类似的问题 - 但我无法拼凑出我需要的东西。

我在Visual Studio 9的项目中使用了boost,并且我无法让它识别我想包含的所有头文件。我使用Windows安装程序安装了Boost,该安装程序也将二进制文件放置在我的机器上。 在Visual Studio中,我修改了Project-> Properties-> Linker-> Additional Libarary Dependencies以包含文件夹 mypath \boost_1 .44 \ lib,其中包含二进制文件 - 但我仍然无法让VS识别我的Boost头文件。请帮助!



干杯。

解决方案

澄清一些文本



您需要修改项目属性以为增强标题添加标题位置。如果你想要一个全局设置,你可以这样做:

工具 - >选项 - >项目和设置 - > VC ++目录。然后在右侧打开标记为Show Directories For的收存箱,然后选择包含文件。

为您的boost头文件路径添加一个新行。

p>

这是VS2008的屏幕截图 - 与VS2010和VS2005类似。





另外,您还可以在每个项目的基础上设置这些目录通过修改每个项目的特定属性。


I did see some similar questions about this - but I couldn't piece together what I needed.

I'm using boost in a project in Visual Studio 9, and I'm unable to get it to recognize all the header files that I'm trying to include. I'd installed Boost using the Windows installer that also places the binaries on my machine.

In Visual Studio, I modified the Project->Properties->Linker->Additional Libarary Dependencies to include the folder "mypath\boost_1.44\lib", which contains the binaries - but I still can't get VS to recognize my Boost header files. Please help!

Cheers.

解决方案

edited to clarify some text

You need to modify the project properties to add header locations for the boost headers as well. If you want a global setting, this is how you do it:

Tool->Options->Projects and Settings->VC++ Directories. Then on the right hand side, Open the dropbox labeled "Show Directories For" and pick "Include Files".

Add a new line for your boost header path.

This is a screenshot from VS2008 - it is similar in VS2010 and VS2005.

Additionally, you can also set these directories on a per-project basis by modifying each project's specific properties.

这篇关于使用Boost和Visual Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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