Hello,
I built wxWidgets 3.2.5 from source code and I am trying to build codeblocks 20.03.
I have this error:
sc_wxtypes.cpp: In function 'void ScriptBindings::Register_wxTypes()':
sc_wxtypes.cpp:357:57: error: no matching function for call to 'SqPlus::SQClassDef<wxFileName>::func(<unresolved overloaded function type>, const char [10])'
357 | func(&wxFileName::Normalize, "Normalize").
| ^
In file included from ../../../../src/include/scripting/bindings/sc_base_types.h:27,
from sc_wxtypes.cpp:18:
../../../../src/include/scripting/sqplus/sqplus.h:1759:16: note: candidate: 'template<class Func> SqPlus::SQClassDef<TClassType>& SqPlus::SQClassDef<TClassType>::func(Func, const SQChar*) [with Func = Func; TClassType = wxFileName]'
1759 | SQClassDef & func(Func pfunc,const SQChar * name_) {
| ^~~~
../../../../src/include/scripting/sqplus/sqplus.h:1759:16: note: template argument deduction/substitution failed:
sc_wxtypes.cpp:357:57: note: couldn't deduce template parameter 'Func'
357 | func(&wxFileName::Normalize, "Normalize").
| ^
sc_wxtypes.cpp:362:33: error: expected primary-expression before '>' token
362 | func<WXFN_SETCWD>(&wxFileName::SetCwd, "SetCwd").
| ^
sc_wxtypes.cpp:362:35: error: left operand of comma operator cannot resolve address of overloaded function
362 | func<WXFN_SETCWD>(&wxFileName::SetCwd, "SetCwd").
| ^~~~~~~~~~~~~~~~~~~
sc_wxtypes.cpp:363:17: error: request for member 'func' in '((void)0, "SetCwd")', which is of non-class type 'const char [7]'
363 | func(&wxFileName::SetExt, "SetExt").
| ^~~~
sc_wxtypes.cpp:368:42: error: expected primary-expression before '>' token
368 | func<WXFN_ISFILEWRITEABLE>(&wxFileName::IsFileWritable,"IsFileWritable");
| ^
sc_wxtypes.cpp:368:44: error: left operand of comma operator cannot resolve address of overloaded function
368 | func<WXFN_ISFILEWRITEABLE>(&wxFileName::IsFileWritable,"IsFileWritable");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
*** [sc_wxtypes.lo] Error code 1
How to fix it properly ?