构建项目配置版本的测试用例使错误使用MinGW连接
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长度= 0这个标志已经给出,但我在显示上述错误
哈哈,奇怪的错误...很好,很有帮助。将值设置为1时会发生什么?只是为了好玩...... – 2010-01-12 06:35:28
哦,还有,在0之后应该有逗号吗? – 2010-01-12 06:36:03
它不会更改编译的可执行文件,请尝试完全删除-fmessage-length参数。另外,你使用的是什么版本的gcc。 – zmbush 2010-01-12 06:37:10