brew安装的gcc无法找到brew安装的gmp

时间:2019-07-18 02:59:53

标签: macos gcc homebrew

我使用brew install gcc和brew install gmp。 但是clang可以使用选项“ -lgmpxx”进行编译,并且在g ++失败时可以成功 我使用了以下命令:

g++ bn_p.cpp -o bn_p.out -lgmpxx -lgmp -Xpreprocessor -fopenmp

它说:

fatal error: gmpxx.h: No such file or directory
4 | #include <gmpxx.h>

0 个答案:

没有答案
相关问题