When compiling the wxSpellChecker target of the SpellChecker plugin (n MSW with wx31) the compilation fails in
#include <wx/setup.h>
because the file can't be found. This is due to custom variables WX_CFG, WX_SUFFIX and WX_VERSION being defined only in the last target (plugin). I have moved them to the general project options and now it compiles OK.
This problem is present in all SpellChecker MSW projects, I have modified the patch to fix all of them.
Following wxWidgets recommendations the file setup.h should be under the libraries folder, not in the include\wx folder.
Last edit: Miguel Gimenez 2018-10-01
Strange, I just build the SpellChecker_wx31.cbp with wx 3.1.1 under 32bit GCC 7.2 under Win7, and I don't have build error, here is the build log.
I did see those "custom variables WX_CFG, WX_SUFFIX and WX_VERSION" are defined in the last build target(named plugin), but I'm not sure why when I select the "ALL" build target(in-fact, it is a virtual target), I don't have the build error.
Probably you have the file setup.h in wx/include, it is suposed to be only under the lib folder; This is why
is in the compiler's search path.
Oh, I just checked the file, and I don't have the setup.h under wx/include.
I'm guessing that the calculation of those custom variables are mess up in my C::B. (I'm using a nightly build C::B rev11210, it is a little old, maybe, the custom variables calculation is fixed later after rev11210, and then the build error problem is exposed).
Any way, Morten has this patch applied, thanks!
Fixed in SVN already.
The wx30 projects should be also fixed.
The WX_VERSION variable value in wx31 projects is 28 and it should be 31, my second patch changed them correctly and also fixed wx30.
Even with the wrong commit, I can still build the wx3.1 cbp plugin successfully. Strange.
Some one report the same issue.
See here: [url=http://forums.codeblocks.org/index.php/topic,22848.0.html]SpellChecker_wx31 cbp bug ?[/url]
Last edit: ollydbg 2018-10-04
This bug is not totally fixed. So I open it.
Done.