News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

patch to build C::B against wx 3.0 with PCH enabled

Started by ollydbg, January 20, 2014, 08:03:28 AM

Previous topic - Next topic

BlueHazzard

is this now standard in wx3.0 projects? Because i try to compile my sqrat port with wx3.0, but i get wired:

sc_consts.cpp|55|error: 'PLUGIN_SDK_VERSION_MAJOR' was not declared in this scope


and there is no special difference between the normal and this project file...

stahta01

Quote from: BlueHazzard on February 17, 2014, 04:44:04 PM
is this now standard in wx3.0 projects? Because i try to compile my sqrat port with wx3.0, but i get wired:

sc_consts.cpp|55|error: 'PLUGIN_SDK_VERSION_MAJOR' was not declared in this scope


and there is no special difference between the normal and this project file...


Patch that should fix it.


Index: src/sdk/scripting/bindings/sc_consts.cpp
===================================================================
--- src/sdk/scripting/bindings/sc_consts.cpp (revision 9659)
+++ src/sdk/scripting/bindings/sc_consts.cpp (working copy)
@@ -10,6 +10,8 @@
#include <sdk_precomp.h>
#ifndef CB_PRECOMP
     #include <wx/string.h>
+   
+    #include <cbplugin.h>
     #include <globals.h>
     #include <settings.h>
#endif
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]