Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxSmithAui fails to compile
Miguel Gimenez:
Revision 10832 broke compilation of wxSmithAui.cbp on Windows: the removing of -std=gnu++11 makes TDM signal an error about strdup (and others) not found in buffer.h (from wxWidgets 2.8).
If I add again the option compilation ends successfully.
stahta01:
GCC Compiler version is likely needed to confirm the error.
Tim S.
Miguel Gimenez:
gcc version 5.1.0 (tdm-1) on Windows XP sp3, 32 bits
stahta01:
--- Quote from: mgimenez on April 29, 2016, 04:30:06 pm ---gcc version 5.1.0 (tdm-1) on Windows XP sp3, 32 bits
--- End quote ---
I will try to duplicate the issue later today on Windows 7 using gcc version 5.1.0 (tdm-1) .
And, post a patch that I will test on Debian Linux; IIRC, wxSmithAui is both an Windows and Linux project; so the changes need tested on both.
Currently doing Linux stuff; so, will have to finish that before re-booting to Windows 7.
Tim S.
stahta01:
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.
--- Code: ---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)" />
--- End code ---
Tim S.
Navigation
[0] Message Index
[#] Next page
Go to full version