Hi All,
I'm lost here. I'm building the IncrementalSearch plugin from the latest trunk (r7945) and when I launch C::B I got this weird error:
Scanning for plugins in C:\Work\codeblocks_trunk\src\devel/share/codeblocks/plugins
SDK version mismatch for IncrementalSearch (1.11.18). Expecting 1.13.1
I mean, the error itself it pretty self-explainable, but I don't get why I'm getting it at all. I've looked into my src files, and in [trunk]//include/cbplugin.h, I see
// this is the plugins SDK version number
// it will change when the SDK interface breaks
#define PLUGIN_SDK_VERSION_MAJOR 1
#define PLUGIN_SDK_VERSION_MINOR 13
#define PLUGIN_SDK_VERSION_RELEASE 1
Shouldn't then the IncrementalSearch plugin compiled with this cbplugin.h return 1.13.1 and not 1.11.18...
I have no idea where the 1.11.18 comes from... Help!
Quote from: daniloz on April 27, 2012, 11:38:41 AM
I have no idea where the 1.11.18 comes from... Help!
Search your file system or do a full rebuild (probably a clean checkout is not a bad idea).
Quote from: oBFusCATed on April 27, 2012, 11:53:15 AM
Search your file system or do a full rebuild (probably a clean checkout is not a bad idea).
I already searched my file system and there only definition I found was the correct one.
Also already tried a full rebuild from both CodeBlocks and IncrementalSearch plugin -> same thing
I'll try a clean checkout...
Another thing to try is to see if the dll for the incremental search plugin is newly built.
Quote from: oBFusCATed on April 27, 2012, 12:12:19 PM
Another thing to try is to see if the dll for the incremental search plugin is newly built.
Unfortunately, it is, I've already checked it. Even deleted it and a new is generated, so... :-(
You have a broken precompiled header (.gch) file I guess. Try to delete them all.
Quote from: oBFusCATed on April 27, 2012, 12:26:31 PM
You have a broken precompiled header (.gch) file I guess. Try to delete them all.
That was the problem! Thanks!
The strange thing (I don't completely understand how this precompiled headers work) is that I had two copies of the precompiled headers, one at [trunk]/.objs/include, which was up-to-date, and another copy at [trunk]/src/include from february.
I assume that the IncrementalSearch plugin was using the old ones at [trunk]/src/include.
But why the core-plugins were using the right ones? Is the location of the precompiled header settable somewhere? Even if it is so, why is the IncrementalSearch plugin not complaining that it cannot found the files and is now searching in the right location? :-o
There was a change of the location of the pchs recently, I think.
Quote from: oBFusCATed on April 27, 2012, 01:14:26 PM
There was a change of the location of the pchs recently, I think.
That explains a lot...
Thanks!!!!
pch's :'(