User forums > General (but related to Code::Blocks)
New wxWidgets releases
Miguel Gimenez:
Thanks for testing. The problem is explained here
--- Quote ---WX_DEFINE_ARRAY_INT(bool) cannot be used because of the differences in std::vector<bool> specialization compared with the generic std::vector<> class. Please either use std::vector<bool> directly or use wxArrayInt instead.
--- End quote ---
So the solution may be using WX_DEFINE_ARRAY_INT(int, wxArrayBool) or using wxArrayInt directly, possibly using a typedef.
ollydbg:
--- Quote from: Miguel Gimenez on March 04, 2026, 02:11:45 pm ---Thanks for testing. The problem is explained here
--- Quote ---WX_DEFINE_ARRAY_INT(bool) cannot be used because of the differences in std::vector<bool> specialization compared with the generic std::vector<> class. Please either use std::vector<bool> directly or use wxArrayInt instead.
--- End quote ---
So the solution may be using WX_DEFINE_ARRAY_INT(int, wxArrayBool) or using wxArrayInt directly, possibly using a typedef.
--- End quote ---
Yes, this is the direction. I have conversation with chatgpt, and it also gives me similar advice.
Let me try this first:
WX_DEFINE_ARRAY_INT(unsigned char, wxArrayBool)
ollydbg:
--- Quote from: ollydbg on March 04, 2026, 02:34:21 pm ---Let me try this first:
WX_DEFINE_ARRAY_INT(unsigned char, wxArrayBool)
--- End quote ---
--- Code: ---diff --git a/src/plugins/contrib/wxSmith/wxwidgets/properties/wxsarraystringcheckproperty.h b/src/plugins/contrib/wxSmith/wxwidgets/properties/wxsarraystringcheckproperty.h
index ab0b632..d9846f1 100644
--- a/src/plugins/contrib/wxSmith/wxwidgets/properties/wxsarraystringcheckproperty.h
+++ b/src/plugins/contrib/wxSmith/wxwidgets/properties/wxsarraystringcheckproperty.h
@@ -25,7 +25,7 @@
#include "../../properties/wxsproperties.h"
-WX_DEFINE_ARRAY_INT(bool,wxArrayBool);
+WX_DEFINE_ARRAY_INT(unsigned char,wxArrayBool);
/** \brief Property for editing arrays of strings with checked option
*
--- End code ---
This patch works OK now.
EDIT:
Now, I see the whole workspace is built OK now with wx 3.3.2. (note I do not build Fortran plugin nor the NassiShneiderman plugin)
Miguel Gimenez:
I have tested the patch with wx3.0.2 on Linux and wx3.2.10 on MSW, works OK. Do you plan to commit it?
ollydbg:
--- Quote from: Miguel Gimenez on March 04, 2026, 06:09:38 pm ---I have tested the patch with wx3.0.2 on Linux and wx3.2.10 on MSW, works OK. Do you plan to commit it?
--- End quote ---
I will do it in this morning.
EDIT
Done in [r13810], thanks!
Navigation
[0] Message Index
[*] Previous page
Go to full version