I do not know how to solve the following compiler error:
Code: Select all
g++ -c -o gcc_mswu\monolib_datectlg.o -I..\..\src\tiff\libtiff -I..\..\src\jpeg -I..\..\src\png -I..\..\src\zlib -I..\..\src\regex -I..\..\src\expat\expat\lib -O2 -mthreads -D__WXMSW__ -DNDEBUG -D_UNICODE -I..\..\lib\gcc_lib\mswu -I..\..\include -W -Wall -DWXBUILDING -I..\..\src\stc\scintilla\include -I..\..\src\stc\scintilla\lexlib -I..\..\src\stc\scintilla\src -D__WX__ -DSCI_LEXER -DNO_CXX11_REGEX -DLINK_LEXERS -DwxUSE_BASE=1 -Wno-ctor-dtor-privacy -std=gnu++11 -MTgcc_mswu\monolib_datectlg.o -MFgcc_mswu\monolib_datectlg.o.d -MD -MP ../../src/generic/datectlg.cpp
In file included from ..\..\include/wx/window.h:18:0,
from ..\..\include/wx/nonownedwnd.h:14,
from ..\..\include/wx/toplevel.h:20,
from ..\..\include/wx/dialog.h:14,
from ../../src/generic/datectlg.cpp:25:
..\..\include/wx/event.h:4328:42: error: 'const wxEventTable wxWindow::sm_eventTable' is protected
static const wxEventTable sm_eventTable; \
^
..\..\include/wx/msw/window.h:804:5: note: in expansion of macro 'wxDECLARE_EVENT_TABLE'
wxDECLARE_EVENT_TABLE();
^
..\..\include/wx/event.h:4333:23: error: within this context
{ &baseClass::sm_eventTable, &theClass::sm_eventTableEntries[0] }; \
^
../../src/generic/datectlg.cpp:330:1: note: in expansion of macro 'wxBEGIN_EVENT_TABLE'
wxBEGIN_EVENT_TABLE(wxDatePickerCtrlGeneric, wxDatePickerCtrlBase)
^
makefile.gcc:11804: recipe for target 'gcc_mswu\monolib_datectlg.o' failed
mingw32-make: *** [gcc_mswu\monolib_datectlg.o] Error 1
Code: Select all
cd build\msw
mingw32-make -f makefile.gcc BUILD=release UNICODE=1 MONOLITHIC=1 SHARED=0 USE_GUI=1 CXXFLAGS="-std=gnu++11" clean
mingw32-make -f makefile.gcc BUILD=release UNICODE=1 MONOLITHIC=1 SHARED=0 USE_GUI=1 CXXFLAGS="-std=gnu++11"