如何在X code ++ 6.0 Boost库添加到我的C ++程序? [英] How do I add the Boost library to my C++ program in XCode 6.0?

查看:172
本文介绍了如何在X code ++ 6.0 Boost库添加到我的C ++程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 X code 6.0,需要在升压库程序。我已经下载 boost_1_57_0.tar.gz 来自的 http://sourceforge.net/projects/boost/files/boost/1.57.0/ 并unarchized它。现在我只需要以某种方式得到它变成我的程序,以便

I'm using XCode 6.0 and need the boost library for program. I have downloaded boost_1_57_0.tar.gz from http://sourceforge.net/projects/boost/files/boost/1.57.0/ and have unarchized it. Now I just need to somehow get it into my program so that

#include "boost/filesystem.hpp"
using boost::filesystem;

工作。我看了看说明 HTTP: //freddy.cellcore.org/post/79587278354/boost-c-libraries-on-osx-x$c$c-5 ,这是 X code 5 ,我似乎无法找到X code 6相当于构建阶段面板。

works. I looked at the instructions http://freddy.cellcore.org/post/79587278354/boost-c-libraries-on-osx-xcode-5, which are for XCode 5, and I can't seem to find the equivalent "Build Phases" panel in XCode 6.

Upvotes的人谁可以提供我的帮助。

Upvotes to anyone who can offer me help.

推荐答案


  • 这里有一个屏幕截图,展示我是怎么做的:

然后包括升压头,像这样:

then include boost headers like so:

#include <boost/filesystem.hpp>

要到构建设置,确保项目视图在左边打开,然后单击实际的目标(在此画面一亮)

To get to the build settings, ensure your project view is open on the left, and then click on the actual target (the one highlighted in this picture)

如果你甚至无法看到,这是因为你在这里有preSS这个愚蠢的,几乎不可见的按钮(右三 - 看起来像一个盒子里的垂直线):

If you can't even see that it's because you have to press this stupid, almost-invisible button here (third from right - looks like a vertical line inside a box):

这篇关于如何在X code ++ 6.0 Boost库添加到我的C ++程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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