What do you mean by compiler errors? If you're using autotools it compiles fine. If you're using projects you have to find all mentions of pkg-config for gtk and gdk and replace -2.0 with -3.0 and it should build fine at least the core.
g++ -Wall -g -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -DcbDEBUG -DCB_PRECOMP -std=c++11 -pthread -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -D__WX__ -DGTK -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs30/include -I.objs30/include -I. -Isdk/wxscintilla/include -Iinclude/tinyxml -Isdk/wxscintilla/src/scintilla/include -Isdk/wxscintilla/src/scintilla/src -Isdk/wxscintilla/src/scintilla/lexlib -c /home/pecan/proj/cbBeta30/trunk/src/sdk/wxscintilla/src/ScintillaWX.cpp -o .objs30/sdk/wxscintilla/src/ScintillaWX.o
In file included from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30:0,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /home/pecan/proj/cbBeta30/trunk/src/sdk/wxscintilla/src/ScintillaWX.cpp:58:
/usr/include/gtk-3.0/gdk/gdktypes.h:143:39: error: conflicting declaration ‘typedef struct _GdkWindow GdkWindow’
typedef struct _GdkWindow GdkWindow;
^~~~~~~~~
In file included from /usr/include/wx-3.0/wx/wxprec.h:12:0,
from /home/pecan/proj/cbBeta30/trunk/src/sdk/wxscintilla/src/ScintillaWX.cpp:17:
/usr/include/wx-3.0/wx/defs.h:3466:33: note: previous declaration as ‘typedef struct _GdkDrawable GdkWindow’
typedef struct _GdkDrawable GdkWindow;
^~~~~~~~~
Process terminated with status 1 (3 minute(s), 29 second(s))
1 error(s), 4 warning(s) (3 minute(s), 29 second(s))
There's an include "-I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0" that I think should be "...gtk3..." instead. But I cannot figure out where it's coming from.
Where is location of the wx-config script?
Depends on your system, for me it is:
$ which wx-config
/usr/local/bin/wx-config
$ ls -l /usr/local/bin
wx-config -> /usr/local/lib64/wx/config/gtk3-unicode-3.1
The other scripts will be in a similar location. This is faster than editing every CodeBlocks project file :)