Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 无法编译库,运行make时未找到符号_Macos_Github_Makefile_Cmake_Macos Catalina - Fatal编程技术网

Macos 无法编译库,运行make时未找到符号

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

我正在尝试编译一个库,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 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不会在任何地方使用。