User forums > Nightly builds
The 09 February 2026 build (13785) is out.
Miguel Gimenez:
Can you test changing wxColour to wxColourBase in lines 1079 to 1082?
Xaviou:
Hi
--- Quote from: Miguel Gimenez on February 16, 2026, 07:09:16 pm ---Can you test changing wxColour to wxColourBase in lines 1079 to 1082?
--- End quote ---
Tested, but it doesn't change anything : the error is still here
Regards
Xav'
Miguel Gimenez:
The only difference I see is the method declarations are "unsigned char Green()" instead of "ChannelType Green()". ChannelType is a typedef for unsigned char, but the compiler may be too picky.
Last shot: replace "wxColour::ChannelType" with "unsigned char" in calls to the NoParamGetterInt template.
EDIT: Another possibility (not fully compatible) is using
--- Code: ---BindMethod(v, _SC("GetBlue"), NoParamGetterInt<int, wxColour, &wxColour::GetBlue>, _SC("wxColour::GetBlue"));
--- End code ---
Xaviou:
--- Quote from: Miguel Gimenez on February 18, 2026, 05:10:51 pm ---The only difference I see is the method declarations are "unsigned char Green()" instead of "ChannelType Green()". ChannelType is a typedef for unsigned char, but the compiler may be too picky.
Last shot: replace "wxColour::ChannelType" with "unsigned char" in calls to the NoParamGetterInt template.
EDIT: Another possibility (not fully compatible) is using
--- Code: ---BindMethod(v, _SC("GetBlue"), NoParamGetterInt<int, wxColour, &wxColour::GetBlue>, _SC("wxColour::GetBlue"));
--- End code ---
--- End quote ---
None of these 2 worked:
--- Code: ---Z:\wxWidgets\CodeBlocks\src\sdk\scripting\bindings\sc_wxtypes.cpp:1079:19: error: no matches converting function 'NoParamGetterInt' to type 'SQFUNCTION' {aka 'int (*)(struct SQVM*)'}
1079 | BindMethod(v, _SC("Blue"), NoParamGetterInt<unsigned char, wxColour, &wxColour::Blue>, _SC("wxColour::Blue"));
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Z:\wxWidgets\CodeBlocks\src\sdk\scripting\bindings\sc_wxtypes.cpp:17:
include/scripting/bindings/sc_utils.h:992:11: note: candidate is: 'template<class ReturnType, class ClassType, ReturnType (ClassType::* func)() const> SQInteger ScriptBindings::NoParamGetterInt(HSQUIRRELVM)'
992 | SQInteger NoParamGetterInt(HSQUIRRELVM v)
| ^~~~~~~~~~~~~~~~
--- End code ---
and
--- Code: ---Z:\wxWidgets\CodeBlocks\src\sdk\scripting\bindings\sc_wxtypes.cpp:1079:19: error: no matches converting function 'NoParamGetterInt' to type 'SQFUNCTION' {aka 'int (*)(struct SQVM*)'}
1079 | BindMethod(v, _SC("Blue"), NoParamGetterInt<int, wxColour, &wxColour::Blue>, _SC("wxColour::Blue"));
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Z:\wxWidgets\CodeBlocks\src\sdk\scripting\bindings\sc_wxtypes.cpp:17:
include/scripting/bindings/sc_utils.h:992:11: note: candidate is: 'template<class ReturnType, class ClassType, ReturnType (ClassType::* func)() const> SQInteger ScriptBindings::NoParamGetterInt(HSQUIRRELVM)'
992 | SQInteger NoParamGetterInt(HSQUIRRELVM v)
| ^~~~~~~~~~~~~~~~
--- End code ---
Regards
Xav'
Miguel Gimenez:
Thanks for testing. The second should use GetBlue instead of Blue, they are different accessors.
EDIT:
The solution recommended by Gemini is the same but using "unsigned int"
--- Code: ---BindMethod(v, _SC("GetAlpha"), NoParamGetterInt<unsigned int, wxColour, &wxColour::GetAlpha>, _SC("wxColour::GetAlpha"));
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version