【问题标题】:Compiling a CGAL example program on Arch Linux with icpc使用 icpc 在 Arch Linux 上编译 CGAL 示例程序
【发布时间】:2014-07-19 06:23:28
【问题描述】:

我想用 Intel Compiler 在 Arch Linux 上编译 an example program with CGAL 4.4

但是,在编译这段代码时,我得到了以下错误:

$ icpc -o first_qp first_qp.cpp -lCGAL -I/usr/include/CGAL

The error message is here (pastebin)

我能做什么?

#我的盒子是最新的,并且 CGAL 和 boost 库已经被 pacman 安装了。

$ sudo pacman -Syu
$ sudo pacman -S cgal boost boost-libs 

#我已经阅读了an article about a similar question,但无法解决。

【问题讨论】:

    标签: c++ archlinux cgal icc


    【解决方案1】:

    您应该删除-I/usr/include/CGAL。它不是必需的,它会混淆编译器,它读取/usr/include/CGAL/gmp.h 而不是/usr/include/gmp.h。请注意,编译 CGAL 示例的推荐方法是使用 cmake(请参阅文档),它会为您处理所有标志。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-05
      • 1970-01-01
      相关资源
      最近更新 更多