Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

wxSmithAui fails to compile

<< < (2/2)

oBFusCATed:
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.

Miguel Gimenez:

--- Quote from: oBFusCATed on May 01, 2016, 07:33:21 pm ---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.

--- End quote ---

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:


--- Code: ------ 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" />

--- End code ---

Jenna:
You are right: I changed it for the whole project, but we have to distinguish between Windows and Unix/Mac here.

Can you please test the latest trunk (if possible).
It should fix this issue.

Miguel Gimenez:
It compiles OK again on Windows, thanks.

Navigation

[0] Message Index

[*] Previous page

Go to full version