用icpc在Arch Linux上编译一个CGAL示例程序
Compiling a CGAL example program on Arch Linux with icpc
我想在Arch Linux上用Intel Compiler编译一个示例程序。
但是,在编译这段代码时,我得到了以下错误:
$ icpc -o first_qp first_qp.cpp -lCGAL -I/usr/include/CGAL
错误信息在这里(pastebin)
我能做什么?
#我的盒子是最新的,并且CGAL和boost库已经被pacman安装了。
$ sudo pacman -Syu
$ sudo pacman -S cgal boost boost-libs
#我已经读过一篇关于类似问题的文章,但是无法解决。
您应该删除-I/usr/include/CGAL
。这是不需要的,它混淆了编译器,它读取/usr/include/CGAL/gmp.h
而不是/usr/include/gmp.h
。请注意,编译CGAL示例的推荐方法是使用cmake(请参阅文档),它可以为您处理所有标志。
相关文章:
- 如何创建一个CMake变量,除非显式重写,否则使用默认值
- 删除一个线程上有数百万个字符串的大型哈希映射会影响另一个线程的性能
- 为什么两个不同的未命名名称空间可以共存于一个cpp文件中
- 运行同一解决方案的另一个项目的项目
- 挂起和取消挂起一个文件DLL
- 用C++中的一个变量定义一个常量
- 函数向量_指针有不同的原型,我可以构建一个吗
- 在c++中用vector填充一个简单的动态数组
- 如何在选项卡视图Qt中设置一个新项目,并保存以前的项目
- 预处理器:插入结构名称中的前一个行号
- 我在c++代码中生成了一个运行时#3异常
- 我想将一个对T类型的非常量左值引用绑定到一个T类型的临时值
- 如何设置一个简单的CGAL+Qt程序
- 如何编写一个简单的CGAL代码来隔离一个2D矩形
- 在Mac OS X 10.7.2上用c++编译一个基本的CGAL程序
- OutputIterator到底是什么,以及如何构建一个用于CGAL Kd_tree::search的OutputIte
- 在CGAL中确定一个点是在3D alpha形状曲面的内部还是外部
- 用CGAL编译一个简单的测试
- 用icpc在Arch Linux上编译一个CGAL示例程序
- 如何确定一个顶点是否在边界上的网格在CGAL