Author Topic: Codeblocks 20.03 with wxWidgets 3.2.5 on NetBSD 10.1  (Read 1159 times)

Offline Beesdeckar

  • Multiple posting newcomer
  • *
  • Posts: 14
Codeblocks 20.03 with wxWidgets 3.2.5 on NetBSD 10.1
« on: January 21, 2025, 10:28:43 pm »
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


How to fix it properly ?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7720
    • My Best Post
Re: Codeblocks 20.03 with wxWidgets 3.2.5 on NetBSD 10.1
« Reply #1 on: January 22, 2025, 12:45:05 am »
Are you building code::blocks from SVN or an tar file?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Beesdeckar

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Codeblocks 20.03 with wxWidgets 3.2.5 on NetBSD 10.1
« Reply #2 on: January 22, 2025, 08:50:34 am »
Both wxWidgets 3.2.5 and codeblocks 20.03 are from tar file.

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 76
Re: Codeblocks 20.03 with wxWidgets 3.2.5 on NetBSD 10.1
« Reply #3 on: January 22, 2025, 09:09:00 am »
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.

Offline Beesdeckar

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Codeblocks 20.03 with wxWidgets 3.2.5 on NetBSD 10.1
« Reply #4 on: January 22, 2025, 11:51:02 am »
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 !