Source: codeblocks Version: 20.03-3.1 Followup-For: Bug #1019830 Hi,
I have tried to build the package with libwxgtk3.2-dev, but
unfortunately, it fails:
```
sc_consts.cpp: In function ‘void ScriptBindings::Register_Constants()’:
sc_consts.cpp:95:27: warning: ‘wxPATH_NORM_ALL’ is deprecated: specify the
wanted flags explicitly to avoid surprises [-Wdeprecated-declarations]
95 | BIND_INT_CONSTANT(wxPATH_NORM_ALL);
| ^~~~~~~~~~~~~~~
sc_consts.cpp:21:62: note: in definition of macro ‘BIND_INT_CONSTANT’
21 | #define BIND_INT_CONSTANT(a) SqPlus::BindConstant<SQInteger>(a, #a);
| ^
In file included from ./sdk_common.h:54,
from ./sdk_precomp.h:13:
/usr/include/wx-3.2/wx/filename.h:83:5: note: declared here
83 | wxPATH_NORM_ALL
| ^~~~~~~~~~~~~~~
sc_wxtypes.cpp: In function ‘void ScriptBindings::Register_wxTypes()’:
sc_wxtypes.cpp:357:21: error: no matching function for call to
‘SqPlus::SQClassDef<wxFileName>::func(<unresolved overloaded function type>,
const char [10])’
326 | SqPlus::SQClassDef<wxFileName>("wxFileName").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
327 | emptyCtor().
| ~~~~~~~~~~~~
328 | staticFuncVarArgs(&wxFileName_OpToString, "_tostring",
"").
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
329 | func<WXFN_ASSIGN_FN>(&wxFileName::Assign, "Assign").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
330 | func<WXFN_ASSIGN_STR>(&wxFileName::Assign, "Assign").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
331 | func(&wxFileName::AssignCwd, "AssignCwd").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
332 | func(&wxFileName::AssignDir, "AssignDir").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
333 | func(&wxFileName::AssignHomeDir, "AssignHomeDir").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
334 | func(&wxFileName::Clear, "Clear").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
335 | func(&wxFileName::ClearExt, "ClearExt").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
336 | // func(&wxFileName::GetCwd, "GetCwd").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
337 | func(&wxFileName::GetDirCount, "GetDirCount").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
338 | func(&wxFileName::GetDirs, "GetDirs").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
339 | func(&wxFileName::GetExt, "GetExt").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
340 | func(&wxFileName::GetFullName, "GetFullName").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
341 | func(&wxFileName::GetFullPath, "GetFullPath").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
342 | func(&wxFileName::GetLongPath, "GetLongPath").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
343 | func(&wxFileName::GetName, "GetName").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
344 | func<WXFN_GETPATH>(&wxFileName::GetPath, "GetPath").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
345 | func(&wxFileName::GetShortPath, "GetShortPath").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
346 | func(&wxFileName::GetVolume, "GetVolume").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
347 | func(&wxFileName::HasExt, "HasExt").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
348 | func(&wxFileName::HasName, "HasName").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
349 | func(&wxFileName::HasVolume, "HasVolume").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
350 | func(&wxFileName::InsertDir, "InsertDir").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
351 | func(&wxFileName::IsAbsolute, "IsAbsolute").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
352 | func(&wxFileName::IsOk, "IsOk").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
353 | func(&wxFileName::IsRelative, "IsRelative").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
354 | func(&wxFileName::IsDir, "IsDir").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
355 | func(&wxFileName::MakeAbsolute, "MakeAbsolute").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
356 | func(&wxFileName::MakeRelativeTo, "MakeRelativeTo").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 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:21: note: couldn’t deduce template parameter ‘Func’
326 | SqPlus::SQClassDef<wxFileName>("wxFileName").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
327 | emptyCtor().
| ~~~~~~~~~~~~
328 | staticFuncVarArgs(&wxFileName_OpToString, "_tostring",
"").
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
329 | func<WXFN_ASSIGN_FN>(&wxFileName::Assign, "Assign").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
330 | func<WXFN_ASSIGN_STR>(&wxFileName::Assign, "Assign").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
331 | func(&wxFileName::AssignCwd, "AssignCwd").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
332 | func(&wxFileName::AssignDir, "AssignDir").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
333 | func(&wxFileName::AssignHomeDir, "AssignHomeDir").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
334 | func(&wxFileName::Clear, "Clear").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
335 | func(&wxFileName::ClearExt, "ClearExt").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
336 | // func(&wxFileName::GetCwd, "GetCwd").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
337 | func(&wxFileName::GetDirCount, "GetDirCount").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
338 | func(&wxFileName::GetDirs, "GetDirs").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
339 | func(&wxFileName::GetExt, "GetExt").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
340 | func(&wxFileName::GetFullName, "GetFullName").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
341 | func(&wxFileName::GetFullPath, "GetFullPath").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
342 | func(&wxFileName::GetLongPath, "GetLongPath").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
343 | func(&wxFileName::GetName, "GetName").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
344 | func<WXFN_GETPATH>(&wxFileName::GetPath, "GetPath").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
345 | func(&wxFileName::GetShortPath, "GetShortPath").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
346 | func(&wxFileName::GetVolume, "GetVolume").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
347 | func(&wxFileName::HasExt, "HasExt").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
348 | func(&wxFileName::HasName, "HasName").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
349 | func(&wxFileName::HasVolume, "HasVolume").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
350 | func(&wxFileName::InsertDir, "InsertDir").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
351 | func(&wxFileName::IsAbsolute, "IsAbsolute").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
352 | func(&wxFileName::IsOk, "IsOk").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
353 | func(&wxFileName::IsRelative, "IsRelative").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
354 | func(&wxFileName::IsDir, "IsDir").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
355 | func(&wxFileName::MakeAbsolute, "MakeAbsolute").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
356 | func(&wxFileName::MakeRelativeTo, "MakeRelativeTo").
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:546: sc_wxtypes.lo] Error 1
...
```
Could you help to have a look?
Thanks.
--
Regards,
--
Bo YU
signature.asc
Description: PGP signature

