【发布时间】:2013-06-13 11:30:06
【问题描述】:
我无法为我的项目使用 Gecode (http://www.gecode.org/download.html) 框架。
-
我下载并安装了框架。现在可以在
下找到/Library/Frameworks/gecode.framework
我创建了一个新的“命令行工具”项目,并为类型选择了“C++”。
- 然后我打开了我的项目的 Target 并在 Build Phases -> Link Binary With Libraries 中添加了 gecode.framework
- 在路径的构建设置中,我为“标题搜索路径”添加了以下路径:/Library/Frameworks/gecode.framework
-
现在我尝试构建一个包含以下内容的示例代码:
#include <gecode/driver.hh> #include <gecode/int.hh> #include <gecode/minimodel.hh>
--> Xcode 抱怨找不到文件。
我尝试使用 g++ 和 llvm-g++ 在终端中编译,它编译时没有任何警告或错误
【问题讨论】:
-
你试过#include "gecode/driver.hh" 吗?
-
是的,我试过了,但它不在本地路径上。问题是,然后 xcode 在 driver.hh 中丢弃错误,它找不到其他
标签: c++ xcode compiler-construction linker