構建項目配置版本的測試用例使錯誤使用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