Code: Select all
#if WXWIN_COMPATIBILITY_2_8
// lot of code out there doesn't explicitly include wx/crt.h, but uses
// CRT wrappers that are now declared in wx/wxcrt.h and wx/wxcrtvararg.h,
// so let's include this header now that wxString is defined and it's safe
// to do it:
#include "wx/crt.h"
#endif
I needed the following patch to avoid errors related to undefined wxPrintf and related functions.
Tim S.
Code: Select all
diff --git a/codelite_launcher/codelite_launcher.cpp b/codelite_launcher/codelite_launcher.cpp
index 64f229a..acb9651 100644
--- a/codelite_launcher/codelite_launcher.cpp
+++ b/codelite_launcher/codelite_launcher.cpp
@@ -1,6 +1,7 @@
#include <wx/string.h>
#include <wx/process.h>
#include <wx/cmdline.h>
+#include <wx/crt.h>
const wxCmdLineEntryDesc gCmdLineDesc[] = {
{ wxCMD_LINE_OPTION, "n", "name", "Executable to launch", wxCMD_LINE_VAL_STRING },
diff --git a/codelite_make/cl_make_generator_app.cpp b/codelite_make/cl_make_generator_app.cpp
index 299b374..a6418cc 100644
--- a/codelite_make/cl_make_generator_app.cpp
+++ b/codelite_make/cl_make_generator_app.cpp
@@ -4,6 +4,7 @@
#include <builder_gnumake.h>
#include <configuration_mapping.h>
#include <macromanager.h>
+#include <wx/crt.h>
IMPLEMENT_APP_CONSOLE(clMakeGeneratorApp)