簡體   English   中英

使用icpc在Arch Linux上編譯CGAL示例程序

[英]Compiling a CGAL example program on Arch Linux with icpc

我想在帶有Intel Compiler的Arch Linux上使用CGAL 4.4編譯示例程序

但是,在編譯此代碼時,出現以下錯誤:

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

錯誤消息在這里(pastebin)

我能做什么?

我的包裝盒是最新的,pacman已經安裝了CGAL和boost庫。

$ 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(請參閱文檔),它可以為您處理所有標志。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM