Thread about what's missing to get Code::Blocks compiling with MinGW and autoconf, like it should...
./configure --host=i386-mingw32 --target=mingw32 --enable-contrib
1.
First problem I ran into was with wxScintilla, and WXDLLIMPEXP_SCI not being set in the Makefile.
AM_CPPFLAGS = -DSCI_LEXER -DLINK_LEXERS -DWXMAKINGDLL_SCI -DGTK
Makes you wonder what "GTK" is doing there hard-coded, but that's another story. Left it there for now.
2.
There is a warning for all code compiled, so -fPIC should probably be off.
warning: -fPIC ignored for target (all code is position independent)
3.
error: definition of static data member '***::sm_eventTable' of dllimport'd class
The macros from CodeBlocks.cbp are missing:
-DEXPORT_LIB -DEXPORT_EVENTS
4.
binreloc doesn't compile, since it only compiles on Unix and only works on Linux
prefix.cpp:222:21: pthread.h: No such file or directory
Gave up building GTK+ and wxGTK under MSys, now trying to do Code::Blocks under Cygwin wxGTK.
Looks like wxWidgets requires major changes to get wxGTK to compile under MinGW MSys. I think I could get GTK+ to compile under MinGW MSys with about a week worth of work, but it is so much easier to just download the finished binary and development file so gave up on that.
Tim S
Code::Blocks Patches needed for CygWin wxGTK build. This is not the complete list, still trying to make it. I got a whole bunch of link errors relating to wxScintilla. Going to try an wxWidgets 2.6.3 build next.
The missing WXMAKINGDLL_SCI just like your build.
Index: src/sdk/wxscintilla/Makefile.am
===================================================================
--- src/sdk/wxscintilla/Makefile.am (revision 3989)
+++ 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
+AM_CPPFLAGS = -DSCI_LEXER -DLINK_LEXERS -DGTK -DWXMAKINGDLL_SCI
noinst_LTLIBRARIES = libwxscintilla.la