little issue on linux
The following patch would solve the problem. I've not applied it yet. I'll inform Thomas about this patch. It was his suggestion and he should check it. :)
Index: include/prep.h
===================================================================
--- include/prep.h (revision 3692)
+++ include/prep.h (working copy)
@@ -5,7 +5,16 @@
#include <wx/version.h>
#endif
+// Undef the following constants. This seems to affect every file which uses namespace platform
+// So these two must be undef'ed first before using namespace platform in any other cpp file
+#ifdef linux
+ #undef linux
+#endif
+#ifdef unix
+ #undef unix
+#endif
+
template <int major, int minor> struct wxMinimumVersion { enum { eval = (wxMAJOR_VERSION > major || (wxMAJOR_VERSION == major && wxMINOR_VERSION >= minor))}; };
template <int major, int minor> struct wxExactVersion { enum { eval = (wxMAJOR_VERSION == major && wxMINOR_VERSION == minor)}; };
template <bool b> struct CompileTimeAssertion{};
Index: sdk/configmanager.cpp
===================================================================
--- sdk/configmanager.cpp (revision 3692)
+++ sdk/configmanager.cpp (working copy)
@@ -33,6 +33,9 @@
#include <shlobj.h>
#endif
+#undef linux
+#undef unix
+
#if defined(__APPLE__) && defined(__MACH__)
#include <sys/param.h>
#include <mach-o/dyld.h>
I've tested the patch and it will fix the compilation issue. :)
sorry for that there's someone post in Chinese
Nothing to be sorry from your side. ;)
And by the way
I have a simple question
Can the developers of codeblock make one pack of zip file
with codeblock program and other all dll files?
It might be helpful to those who need to download all necessary dll files.
Well, it's a tricky question. Because plugins consist of a number of dlls. Not all of them gets an update everyday but it's tedious to find them out and pack the updated ones. :)
Regards,
Biplab