Macos 无法编译库,运行make时未找到符号
我正在尝试编译一个库,MultiNest。我在Mac OS Catalina上,10.15.6。操作说明如下:Macos 无法编译库,运行make时未找到符号,macos,github,makefile,cmake,macos-catalina,Macos,Github,Makefile,Cmake,Macos Catalina,我正在尝试编译一个库,MultiNest。我在Mac OS Catalina上,10.15.6。操作说明如下: git clone https://github.com/JohannesBuchner/MultiNest cd MultiNest/build cmake .. make 运行make时出现此错误: Undefined symbols for architecture x86_64: "___nested_MOD_nestrun", referenced fr
git clone https://github.com/JohannesBuchner/MultiNest
cd MultiNest/build
cmake ..
make
运行make时出现此错误:
Undefined symbols for architecture x86_64:
"___nested_MOD_nestrun", referenced from:
_run in eggbox.c.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/eggboxC] Error 1
make[1]: *** [src/example_eggbox_C/CMakeFiles/eggboxC.dir/all] Error 2
make: *** [all] Error 2
根据类似的错误,这个项目不能与clang一起工作。我使用的是gcc。运行cmake时的部分输出是“C编译器标识为GNU9.3.0”,因此,除非我对某些东西感到困惑,否则我认为clang不会在任何地方使用。