Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: everSome on August 28, 2022, 03:33:21 am

Title: r12878 fails to compile via SpellChecker_wx31_64.cbp or SpellChecker_wx32_64.cbp
Post by: everSome on August 28, 2022, 03:33:21 am
Made the following change to both of the aforementioned files in order to get SpellCheckerPlugin.cpp to compile.

diff --git a/src/plugins/contrib/SpellChecker/SpellChecker_wx31_64.cbp b/src/plugins/contrib/SpellChecker/SpellChecker_wx31_64.cbp
--- a/src/plugins/contrib/SpellChecker/SpellChecker_wx31_64.cbp
+++ b/src/plugins/contrib/SpellChecker/SpellChecker_wx31_64.cbp
@@ -74,7 +74,7 @@
                <Add option="-Winvalid-pch" />
                <Add option="-DCB_PRECOMP" />
                <Add option="-DcbDEBUG" />
-               <Add directory="hunspell/src" />
+               <Add directory="hunspell/src/hunspell" />
                <Add directory="wxspellchecker/include" />
                <Add directory="../../../include" />
                <Add directory="../../../include/tinyxml" />
diff --git a/src/plugins/contrib/SpellChecker/SpellChecker_wx32_64.cbp b/src/plugins/contrib/SpellChecker/SpellChecker_wx32_64.cbp
--- a/src/plugins/contrib/SpellChecker/SpellChecker_wx32_64.cbp
+++ b/src/plugins/contrib/SpellChecker/SpellChecker_wx32_64.cbp
@@ -74,7 +74,7 @@
                <Add option="-Winvalid-pch" />
                <Add option="-DCB_PRECOMP" />
                <Add option="-DcbDEBUG" />
-               <Add directory="hunspell/src" />
+               <Add directory="hunspell/src/hunspell" />
                <Add directory="wxspellchecker/include" />
                <Add directory="../../../include" />
                <Add directory="../../../include/tinyxml" />

Otherwise it couldn't find hunspell.h
Is anyone else having this problem?
Title: Re: r12878 fails to compile via SpellChecker_wx31_64.cbp or SpellChecker_wx32_64.cbp
Post by: gd_on on August 28, 2022, 09:59:30 am
yes, mentioned here : https://forums.codeblocks.org/index.php/topic,25088.msg170996.html#msg170996
and similar solution found by Letartare.