wxWidgets の最初の例のコマンドラインをコンパイルしようとしていますが、次のエラーが発生します
/usr/local/include/wx-3.0/wx/gtk/toplevel.h: In member function ‘virtual bool MyApp::OnInit()’:
/usr/local/include/wx-3.0/wx/gtk/toplevel.h:63:18: error: ‘virtual bool wxTopLevelWindowGTK::Show(bool)’ is inaccessible
virtual bool Show(bool show = true);
^
app1.cpp:36:19: error: within this context
frame->Show(true);
^
app1.cpp:36:19: error: ‘wxTopLevelWindowGTK’ is not an accessible base of ‘MyFrame’
コマンドラインを使用してプログラムをコンパイルしています
g++ -v `wx-config --version=3.0 --cxxflags` -std=c++11 `wx-config --version=3.0 --libs` app1.cpp
次のエラーログを取得します:エラーログ
完全なコード:ソース コード