I am once more trying to get Code::Blocks to compile under the Cygwin environment.
This time using a newer Cygwin and the 2.8 branch of wxWidgets.
Past Tries:
http://forums.codeblocks.org/index.php/topic,10540.0.html
Patch 1 to Code::Blocks
Index: src/sdk/wxscintilla/Makefile.am
===================================================================
--- src/sdk/wxscintilla/Makefile.am (revision 6202)
+++ src/sdk/wxscintilla/Makefile.am (working copy)
@@ -3,7 +3,7 @@
-I$(srcdir)/src/scintilla/include \
-I$(srcdir)/src/scintilla/src
-AM_CPPFLAGS = -DSCI_LEXER -DLINK_LEXERS -DGTK -D__WX__
+AM_CPPFLAGS = -DWXMAKINGDLL_SCI -DSCI_LEXER -DLINK_LEXERS -DGTK -D__WX__
noinst_LTLIBRARIES = libwxscintilla.la
Patch to wxWidgets 2.8 branch to fix temporary compile bug. Should be fixed in 48 hours by wx devs; I am not taking time to submit my patch; I am not positive it is a valid fix.
Index: src/unix/mimetype.cpp
===================================================================
--- src/unix/mimetype.cpp (revision 63936)
+++ src/unix/mimetype.cpp (working copy)
@@ -1527,7 +1527,7 @@
m_initialized = true;
int mailcapStyles = wxMAILCAP_ALL;
- if ( wxAppTraits * const traits = wxApp::GetTraitsIfExists() )
+ if ( wxAppTraits * const traits = (wxTheApp ? wxTheApp->GetTraits() : NULL) )
{
wxString wm = traits->GetDesktopEnvironment();
Tim S.