小编Urj*_*dav的帖子

clang:错误:-lm:在 MacOSX 上编译时未使用“链接器”输入

我正在尝试使用 gnu make 在 MacOSX 上编译程序 mafTools。我收到以下错误:

cd mafExtractor && make all

clang -std=c99 -stdlib=libstdc++ -O3 -c -O3 -Wall -Werror --pedantic -funroll-loops -DNDEBUG -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -I ../../sonLib/lib -I ../inc -I ../external  src/mafExtractorAPI.c -o src/mafExtractorAPI.o.tmp -lm
Run Code Online (Sandbox Code Playgroud)

这给出了错误:

clang: error: -lm: 'linker' input unused [-Werror,-Wunused-command-line-argument]
make[1]: \*** [src/mafExtractorAPI.o] Error 1
make: \*** [mafExtractor.all] Error 2
Run Code Online (Sandbox Code Playgroud)

我查看了类似的错误,但无法修复它。任何帮助都感激不尽。谢谢!

这是包: https: //github.com/dentearl/mafTools/tree/master/mafExtractor 这里的其他所有内容都已成功编译。

这是生成文件: https://github.com/dentearl/mafTools/blob/master/mafExtractor/Makefile

非常感谢。

c++ compiler-errors

2
推荐指数
1
解决办法
3514
查看次数

标签 统计

c++ ×1

compiler-errors ×1