I have confirmed the problem on Windows 7 64 bit Using TDM GCC 5.1.0 32 bit mingw.org version.
Note: I will add the patch to this post when I confirm it works on Windows; will NOT have time to test on Linux today.
This worked on Windows will need to confirm it causes no issues on Linux.
diff --git a/src/plugins/contrib/wxSmithAui/wxSmithAui.cbp b/src/plugins/contrib/wxSmithAui/wxSmithAui.cbp
index 20f7a41..24b150f 100644
--- a/src/plugins/contrib/wxSmithAui/wxSmithAui.cbp
+++ b/src/plugins/contrib/wxSmithAui/wxSmithAui.cbp
@@ -48,6 +48,7 @@
<Add option="-fmessage-length=0" />
<Add option="-fexceptions" />
<Add option="-Winvalid-pch" />
+ <Add option="-std=gnu++11" />
<Add option="-DHAVE_W32API_H" />
<Add option="-D__WXMSW__" />
<Add directory="$(#wx.include)" />
Tim S.
mgimenez: There is no way that breakage has been introduced with rev 10832 - it has affected only the unix project and not the windows ones. I guess we've forgotten to add the -std=gnu++11 flag for this project, so the stahta01 patch should be correct.
wxSmithAui.cbp is included in the Codeblocks.workspace file and in Codeblocks-unix.workspace, so it's common to both versions and a change in the unix version affects the windows version (as they are the same file).
Revision 10832 does change wxSmithAui.cbp and removes the -std=gnu++11 option, as you can see below:
--- a/trunk/src/plugins/contrib/wxSmithAui/wxSmithAui.cbp
+++ b/trunk/src/plugins/contrib/wxSmithAui/wxSmithAui.cbp
@@ -17,7 +17,6 @@
<Option host_application="../../../devel/codeblocks" />
<Option run_host_application_in_terminal="0" />
<Compiler>
- <Add option="-ansi" />
<Add option="`wx-config --version=2.8 --cflags`" />
<Add option="-Winvalid-pch" />
<Add option="-fexceptions" />
@@ -85,7 +84,6 @@
<Add option="-DCB_PRECOMP" />
<Add option="-DWX_PRECOMP" />
<Add option="-std=c++11" />
- <Add option="-std=gnu++11" />
<Add directory="../../../include" />
<Add directory="../../../sdk/wxscintilla/include" />
<Add directory="../../../sdk/wxpropgrid/include" />