【发布时间】:2017-09-13 04:22:00
【问题描述】:
我正在尝试使用 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
这给出了错误:
clang: error: -lm: 'linker' input unused [-Werror,-Wunused-command-line-argument]
make[1]: \*** [src/mafExtractorAPI.o] Error 1
make: \*** [mafExtractor.all] Error 2
我查看了类似的错误,但无法修复它。任何帮助都感激不尽。谢谢!
这是包裹:https://github.com/dentearl/mafTools/tree/master/mafExtractor 此处其他所有内容均已成功编译。
这是生成文件: https://github.com/dentearl/mafTools/blob/master/mafExtractor/Makefile
非常感谢。
【问题讨论】:
标签: c++ compiler-errors