Ok, I realised I needed to change _KEYMOD_ to _SCMOD_
Now I get the following errors:
-------------- Build: cbplugin in PythonInterpreter (compiler: GNU GCC Compiler)---------------
g++ -Wall -ansi -g -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 -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -std=c++11 -g -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 -I/usr/local/include/codeblocks -I/usr/local/include/codeblocks/tinyxml -I/usr/local/include/codeblocks/scripting/include -I/usr/local/include/codeblocks/scripting/bindings -I/usr/local/include/codeblocks/scripting/sqplus -I/usr/local/include/codeblocks/wxscintilla/include -I../XmlRpcEmbedder -I../XmlRpcEmbedder/XMLRPC/include -c /home/rcrozier/src/codeblocks-python-crobarcro-git/PythonInterpreter/PythonInterpCtrl.cpp -o .objs/PythonInterpCtrl.o
g++ -shared -L../XmlRpcEmbedder .objs/PythonInterpCtrl.o .objs/PythonInterpreter.o .objs/ShellCtrlBase.o -o PythonInterpreter.so -L/usr/lib/x86_64-linux-gnu -pthread -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -Wl,-z,defs -L/usr/local/lib -lcodeblocks -lXmlRpcEmbedder
.objs/ShellCtrlBase.o: In function `ShellManager::LaunchProcess(wxString const&, wxString const&, wxString const&, wxArrayString const&)':
/home/rcrozier/src/codeblocks-python-crobarcro-git/PythonInterpreter/ShellCtrlBase.cpp:161: undefined reference to `wxAuiNotebook::InsertPage(unsigned long, wxWindow*, wxString const&, bool, wxBitmap const&)'
.objs/ShellCtrlBase.o: In function `ShellManager::ShellManager(wxWindow*)':
/home/rcrozier/src/codeblocks-python-crobarcro-git/PythonInterpreter/ShellCtrlBase.cpp:261: undefined reference to `wxAuiNotebook::AddPage(wxWindow*, wxString const&, bool, wxBitmap const&)'
.objs/ShellCtrlBase.o: In function `__static_initialization_and_destruction_0(int, int)':
/home/rcrozier/src/codeblocks-python-crobarcro-git/PythonInterpreter/ShellCtrlBase.cpp:88: undefined reference to `wxEVT_AUINOTEBOOK_PAGE_CLOSE'
/home/rcrozier/src/codeblocks-python-crobarcro-git/PythonInterpreter/ShellCtrlBase.cpp:88: undefined reference to `wxEVT_AUINOTEBOOK_PAGE_CLOSE'
/home/rcrozier/src/codeblocks-python-crobarcro-git/PythonInterpreter/ShellCtrlBase.cpp:89: undefined reference to `wxEVT_AUINOTEBOOK_PAGE_CHANGING'
/home/rcrozier/src/codeblocks-python-crobarcro-git/PythonInterpreter/ShellCtrlBase.cpp:89: undefined reference to `wxEVT_AUINOTEBOOK_PAGE_CHANGING'
.objs/ShellCtrlBase.o: In function `wxAuiNotebook::wxAuiNotebook(wxWindow*, int, wxPoint const&, wxSize const&, long)':
/usr/include/wx-3.0/wx/aui/auibook.h:258: undefined reference to `vtable for wxAuiNotebook'
/usr/include/wx-3.0/wx/aui/auibook.h:258: undefined reference to `vtable for wxAuiNotebook'
/usr/include/wx-3.0/wx/aui/auibook.h:258: undefined reference to `wxAuiManager::wxAuiManager(wxWindow*, unsigned int)'
/usr/include/wx-3.0/wx/aui/auibook.h:258: undefined reference to `wxAuiTabContainer::wxAuiTabContainer()'
/usr/include/wx-3.0/wx/aui/auibook.h:259: undefined reference to `wxAuiNotebook::Init()'
/usr/include/wx-3.0/wx/aui/auibook.h:260: undefined reference to `wxAuiNotebook::Create(wxWindow*, int, wxPoint const&, wxSize const&, long)'
/usr/include/wx-3.0/wx/aui/auibook.h:258: undefined reference to `wxAuiTabContainer::~wxAuiTabContainer()'
/usr/include/wx-3.0/wx/aui/auibook.h:258: undefined reference to `wxAuiManager::~wxAuiManager()'
collect2: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 2 second(s))
15 error(s), 0 warning(s) (0 minute(s), 2 second(s))
It seems like the correct library is not being linked, all errors are related to wxAUI. Can anyone tell me what I need to link to to get rid of these undefined reference errors?