构建项目测试用例的配置发布
make all
Building file: ../atest.cpp
Invoking: GCC C++ Compiler
g++ -I"C:\cppunit\include" -I"C:\cppunit\include\cppunit\extensions" -I"C:\mingw\bin" -O3 -Wall -c -fmessage-length=0, -Wl,-subsystem,console -MMD -MP -MF"atest.d" -MT"atest.d" -o"atest.o" "../atest.cpp"
cc1plus.exe: error: argument to "-fmessage-length=" should be a non-negative integer
make: *** [atest.o] Error 1
实际上在我的gcc c ++ compller中有-c -fmessage-length = 0这个标志已经给出但我的控制台窗口显示上面的错误
答案 0 :(得分:0)
这实际上不是制作错误。 make运行其他命令(例如g ++)来实际构建项目。当其中一个命令发出错误时,make将停止(除非明确告知忽略该错误)。
这似乎是mingw编译器中的一个错误。我在g ++的多个版本上尝试了-fmessage-length=0
(对于Darwin / Mac为4.2.1,在Linux上为4.3.2)并且没有一个发出该错误(我可以通过指定-fmessage-length=-1
来创建错误)。
答案 1 :(得分:0)
从-fmessage-length=0,