Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: yesno on November 03, 2010, 09:09:11 am
-
The error message was: "cc1plus.exe: error: unrecognized command line option "-Wno-attributes""
All ran fine after i have removed it from wxSmith.cbp (without error messages)
My compiler is MinGW 4.4.0 on WinXPSP3 (MinGW 3.4.5 doesn't know this option, too)
The svn revision is 6817 (rep. 6796)
The unknown option was introduced in revision 6756
The whole commandline was:
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -Wno-attributes -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DBUILDING_PLUGIN -DwxUSE_UNICODE -DWXMAKINGDLL_PROPGRID -DwxPG_USE_WXMODULE=0 -march=i586 -Wall -IC:/Programme/wxWidgets/lib-2810440/gcc_lib/gcc_dll/mswu -IC:/Programme/wxWidgets/include-2810440 -I../../../include -I../../../sdk/wxpropgrid/include -I../../../sdk/wxscintilla/include -I../../../include/scripting/include -I../../../include/scripting/squirrel -I../../../include/scripting/sqplus -I../../../include/scripting/bindings -I../../../include/mozilla_chardet -I. -IC:/Programme/MinGW-4.4.0/include -IC:/Programme/CodeBlocks/include -IC:/SRC-Extern/codeblocks/trunk/src/plugins/contrib/wxSmith/properties -IC:/SRC-Extern/codeblocks/trunk/src/plugins/contrib/wxSmith -c C:/SRC-Extern/codeblocks/trunk/src/plugins/contrib/wxSmith/properties/wxsarraystringproperty.cpp -o ../../../.objs/plugins/contrib/wxSmithLib/properties/wxsarraystringproperty.o
cc1plus.exe: error: unrecognized command line option "-Wno-attributes"
With kind regards
yesno
-
Trying r6819?
-
It's a valid option in gcc 4.4.5
-Wno-attributes
Do not warn if an unexpected __attribute__ is used, such as unrecognized attributes, function attributes applied to variables, etc. This will not stop errors for incorrect use of supported attributes.
and was valid in gcc 4.3.5 also: http://gcc.gnu.org/onlinedocs/gcc-4.3.5/gcc/Warning-Options.html#index-Wattributes-378 (http://gcc.gnu.org/onlinedocs/gcc-4.3.5/gcc/Warning-Options.html#index-Wattributes-378).
I did not test MinGW 4.4.0, but are you sure the correct compiler is used ?
-
yesno: what is your compiler version: gcc --version?
-
It was indeed version 3.4.5, you are right and i am sorry
With kind regards
yesno