根据X code 4.6.1使用升压 - 什么是正确的构建设置? [英] Using boost from XCODE 4.6.1 - what are the proper build settings?

查看:150
本文介绍了根据X code 4.6.1使用升压 - 什么是正确的构建设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了提升1.53和提取到用户/用户/桌面/ boost_1_53_0
我成功地构建升压如下说明在静态库: http://libcinder.org/docs/ v0.8.5 / _cinder_boost.html

I downloaded boost 1.53 and extracted to Users/user/Desktop/boost_1_53_0 I successfully built boost as static libraries following instructions at: http://libcinder.org/docs/v0.8.5/_cinder_boost.html

我改变X code'S生成设置,头文件搜索路径到/用户/用户/桌面/ boost_1_53_0以及库搜索路径为用户/用户/桌面/ boost_1_53_0 /台/ lib目录

I changed XCODE's "Build Settings" "Header Search Paths" to /Users/user/Desktop/boost_1_53_0 as well as the "Library Search Paths" to Users/user/Desktop/boost_1_53_0/stage/lib

然后我建立并得到错误:

Then I build and get errors:

我得到的第一个错误是has_binary_operator.hpp解析问题的预期会员名称或';'声明说明符后,在该行:

The first error I'm getting is "has_binary_operator.hpp" Parse issue Expected member name or ';' after declaration specifiers at the line:

&模板LT; typename的LHS,typename的右轴>

template < typename Lhs, typename Rhs >

结构operator_exists {

struct operator_exists {

...

有没有人有构建设置应该是什么秘诀吗?该项目包含了一些文件,这些文件可可/目标C(.M)等人是使用boost C ++(毫米)。我完全新的尝试在OSX山狮和X code 4.6.1使用boost。

Does anyone have tips for what the build settings should be? The project contains some files that are cocoa/objective C (.m) and others that are C++(.mm) using boost. I'm completely new to trying to use boost under OSX mountain lion and XCODE 4.6.1.

推荐答案

我有点晚了这一个,但如果任何人有这个问题...

I'm a little late for this one, but in case anybody else has this issue...

我有这个问题,在使用Objective C.我会得到解析,并在has_binary_operator.hpp和lexical_cast.hpp语义问题,项目的推动作用。

I had this problem with boost in projects using Objective C. I would get parse and semantic issues in has_binary_operator.hpp and lexical_cast.hpp.

一个快速修复被插入包括目标C源文件boost头文件之前和#undef检查,因为它会出现检查是目标C保留字。

A quick fix was inserting "#undef check" before including boost headers in Objective C source files, as it would appear "check" is a reserved word in Objective C.

这篇关于根据X code 4.6.1使用升压 - 什么是正确的构建设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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