English 中文(简体)
包括x条码的升值
原标题:Include boost in xcode
  • 时间:2012-04-13 13:42:08
  •  标签:
  • xcode
  • boost

I could not include boost in xcode. I used the build instructions from the Boost documentation and wrote the search paths in xcode /usr/local/lib and /usr/local/include.

任何帮助请!

最佳回答

I m 采用Xcode 3.2.1, mac os 10.6.8

我今天在使用推进器和X码方面遇到问题,最后,我设法使其发挥作用,我希望这有助于:

  1. 下载力提高,我今天用1.52,把它 un开。

  2. 安装动力:

    首先,在“<代码>/格列斯陷阱>/代码”上,在头几行之后,它停止了。 在有些争 go之后,我回答说,是因为我很久以前就安装了X编码系统,出于某种原因,我没有在安装选择中核对“Unix development”。 此时此刻,重新采用X条码的新版本,并核对“九条发展线”。

    之后,<代码>/格列斯和。 1. 安装精细

  3. The lambda example:

    在这一点上,第一个例子如果在项目环境/头盔搜索路径中不尝试添加<条码>/用户/当地/包括<>/代码>,就应当进行罚款。

  4. 2. 使用表面或需要建造的其他东西

    校对需要一种特定的校正:校准系统。 载于<代码>/usr/ local/lib。 在<代码>后,b2安装

    在“全球倡议”的左部分,你可以右边点击,选择现有的文件

    如果档案藏匿,你可以找到一个捷径,在名录/Developer/SDKs/MacOSX10.6.sdk/usr/ local上接到用户/地方/用户。

once the libboost_system.dylib does appear in the Groups and Files part of the GUI, it should work

问题回答

I followed henrikstroem s great post, like this:

Install through homebrew,得少于3分钟。

mac:~ woz$ brew install boost
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/boost-1.57.0.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring boost-1.57.0.yosemite.bottle.tar.gz
?  /usr/local/Cellar/boost/1.57.0: 10572 files, 439M
mac:~ woz$

在您的家中建立link

mac:~ woz$ cd
mac:~ woz$ ln -s /usr/local/Cellar/boost/1.57.0 boost_1_57_0
mac:~ woz$ 

在X条码中,它指的是像这种刚刚建立的link链。

“Xcode

mic@mbp: ~/work $ brew install boost
mic@mbp: ~/work $ ls -l /usr/local/include/boost
lrwxr-xr-x  1 mic  wheel  36 Nov 27 01:06 /usr/local/include/boost -> ../Cellar/boost/1.56.0/include/boost

hi,我添加/usr/ local/include,载于Header search Paths(双点击,但 De或其他次检查),然后

#include <boost/asio.hpp>
#include <boost/date_time.hpp>

using namespace boost;

int main() {
    asio::io_service io;

    io.run();
    return 0;
}

worked, :D





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签