Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: everSome on July 10, 2026, 04:27:58 am

Title: Compilation error using wxWidgets 3.3.3
Post by: everSome on July 10, 2026, 04:27:58 am
Is wxWidgets being too restrictive? I had no problems with r13882 & 3.3.2,
but with r13883 & 3.3.3 I get:
Code
g++.exe -Wall -m64 -std=gnu++20 -O3 -pipe -mthreads -fmessage-length=0 -fexceptions -DHAVE_W32API_H -D__WXMSW__ -D_WIN64 -DWXMAKINGDLL -DwxUSE_UNICODE -DWXMAKINGDLL_CHART -Wno-unused-local-typedefs -Wno-deprecated-declarations -march=haswell -fno-omit-frame-pointer -IC:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.3.3\include -IC:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.3.3\lib\gcc_dll\mswu -Iwxchart\include -c C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13883-trunk_Just333\src\plugins\contrib\wxContribItems\wxchart\src\pie3dchartpoints.cpp -o ..\..\..\.objs33_64\plugins\contrib\wxContribItems\wxChartCtrl\wxchart\src\pie3dchartpoints.o
In file included from C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.3.3\include/wx/window.h:2082,
from C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.3.3\include/wx/wx.h:36,
from C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13883-trunk_Just333\src\plugins\contrib\wxContribItems\wxchart\src\chartctrl.cpp:28:
C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.3.3\include/wx/msw/window.h:74:22: warning: 'virtual wxString wxWindow::GetLabel() const' was hidden [-Woverloaded-virtual=]
74 | virtual wxString GetLabel() const override;
| ^~~~~~~~
In file included from wxchart\include/wx/chartctrl.h:26,
from C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13883-trunk_Just333\src\plugins\contrib\wxContribItems\wxchart\src\chartctrl.cpp:32:
wxchart\include/wx/legendwindow.h:54:18: note: by 'wxString wxLegendWindow::GetLabel(int) const'
54 | wxString GetLabel(int n) const;
| ^~~~~~~~
C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13883-trunk_Just333\src\plugins\contrib\wxContribItems\wxchart\src\chartctrl.cpp: In member function 'void wxChartCtrl::OnScroll(wxScrollWinEvent&)':
C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13883-trunk_Just333\src\plugins\contrib\wxContribItems\wxchart\src\chartctrl.cpp:847:41: error: 'void wxScrollHelperBase::HandleOnScroll(wxScrollWinEvent&)' is private within this context
847 | wxScrolledWindow::HandleOnScroll( event );
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.3.3\include/wx/wx.h:83:
C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.3.3\include/wx/scrolwin.h:413:10: note: declared private here
413 | void HandleOnScroll(wxScrollWinEvent& event);
| ^~~~~~~~~~~~~~
Process terminated with status 1 (1 minute(s), 21 second(s))
Title: Re: Compilation error using wxWidgets 3.3.3
Post by: Miguel Gimenez on July 10, 2026, 10:14:53 am
GetLabel() part fixed in r13884 (https://sourceforge.net/p/codeblocks/code/13884).
HandleOnScroll() part fixed in r13885 (https://sourceforge.net/p/codeblocks/code/13885).
Title: Re: Compilation error using wxWidgets 3.3.3
Post by: LETARTARE on July 10, 2026, 12:14:51 pm
Leap-15.6, gcc-1520, wx328
There are other warnings of the kind mentioned : "-Woverloaded-virtual="
'warning: 'virtual wxString wxWindow::GetLabel() const' was hidden [-Woverloaded-virtual=]'

Title: Re: Compilation error using wxWidgets 3.3.3
Post by: Miguel Gimenez on July 10, 2026, 01:33:09 pm
I am using an old MinGW compiler and do not get those warnings, please attach all warnings or a patch.
Title: Re: Compilation error using wxWidgets 3.3.3
Post by: LETARTARE on July 10, 2026, 02:04:57 pm
I just dropped off a ticket : https://sourceforge.net/p/codeblocks/tickets/1611/ (https://sourceforge.net/p/codeblocks/tickets/1611/)
Attached two compressed files of the outputs 'Build messages'
Title: Re: Compilation error using wxWidgets 3.3.3
Post by: gd_on on July 10, 2026, 04:14:35 pm
SVN 13889 compiles for me with wxWidgets 3.3.3 (yesterday I had the same problem than described in the first post).
But when I launch this version I obtain a wxCheck warning.
Title: Re: Compilation error using wxWidgets 3.3.3
Post by: gd_on on July 10, 2026, 05:37:11 pm
I tried to published an image of the error, but I had a database error. I dont understand why. Here is the text contained in that warning window :
Quote
A debugging check in this application has failed.
../../src/aui/auibook.cpp(2335): assert "page->GetParent() ==  this" failed in InsertPage(): page must be a child of the notebook
If I click on the Continue Button, C::B seems to work.
Title: Re: Compilation error using wxWidgets 3.3.3
Post by: Pecan on July 10, 2026, 05:39:53 pm
I tried to published an image of the error, but I had a database error. I dont understand why. Here is the text contained in that warning window :
Quote
A debugging check in this application has failed.
../../src/aui/auibook.cpp(2335): assert "page->GetParent() ==  this" failed in InsertPage(): page must be a child of the notebook
If I click on the Continue Button, C::B seems to work.

This assert will probably be fixed by https://sourceforge.net/p/codeblocks/tickets/1605/ when it gets applied sometime soon. It's still in test/verify mode.
Title: Re: Compilation error using wxWidgets 3.3.3
Post by: gd_on on July 11, 2026, 10:43:27 am
@Pecan: I tested on svn 13892 your patch downloaded yesterday (-3 version). Nevertheless, after the patch, the wxCheck warning seems to be still there with wxWidgets 3.3.3 but was not (and is not) present with wxWidgets 3.3.2