Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Codeblocks 20.03 with wxWidgets 3.2.5 on NetBSD 10.1

(1/1)

Beesdeckar:
Hello,
I built wxWidgets 3.2.5 from source code and I am trying to build codeblocks 20.03.
I have this error:

--- Code: ---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


--- End code ---

How to fix it properly ?

stahta01:
Are you building code::blocks from SVN or an tar file?

Tim S.

Beesdeckar:
Both wxWidgets 3.2.5 and codeblocks 20.03 are from tar file.

Wkerry:
Tim,

The codeblocks source referenced in the previous thread was from before Dec 2021 (I think) as this is when wx 2.8 support was removed as the block has support for 2.8.

Beesdeckar,

No one is going to be able to help you with the issue in 20.03 as there has been almost 5 years of changes in the source code since then and as such you are better building it from the latest SVN or GIT repo mirror as only then I expect you will get help.

Beesdeckar:
I thought that 20.03 is something new by your web page.

When I checkout from current branch then build successfully finished.

Thanks for help !

Navigation

[0] Message Index

Go to full version