Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
New wxSmith/wxSmithlib compiler option caused a compiler error
(1/1)
yesno:
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
Loaden:
Trying r6819?
Jenna:
It's a valid option in gcc 4.4.5
--- Quote from: http://gcc.gnu.org/onlinedocs/gcc-4.4.5/gcc/Warning-Options.html#index-Wattributes-384 ----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.
--- End quote ---
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.
I did not test MinGW 4.4.0, but are you sure the correct compiler is used ?
oBFusCATed:
yesno: what is your compiler version: gcc --version?
yesno:
It was indeed version 3.4.5, you are right and i am sorry
With kind regards
yesno
Navigation
[0] Message Index
Go to full version