Code: Select all
wx-app.h:58:29: error: invalid use of incomplete type ‘class wxCommandEvent’
58 | class CallbackEvent: public wxCommandEvent
| ^~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/wx.h:24,
from wx-app.h:6,
from wx-main.cc:1:
/usr/include/wx-3.0/wx/event.h:632:28: note: forward declaration of ‘class wxCommandEvent’
632 | class WXDLLIMPEXP_FWD_CORE wxCommandEvent;
| ^~~~~~~~~~~~~~
In file included from wx-main.cc:1:
wx-app.h: In constructor ‘CallbackEvent::CallbackEvent(WX_CALLBACK, void*)’:
wx-app.h:61:59: error: type ‘wxCommandEvent’ is not a direct base of ‘CallbackEvent’
61 | CallbackEvent(WX_CALLBACK callback, void* data) : wxCommandEvent(WX_CALLBACK_EVENT)
| ^~~~~~~~~~~~~~
wx-app.h: In copy constructor ‘CallbackEvent::CallbackEvent(const CallbackEvent&)’:
wx-app.h:66:53: error: type ‘wxCommandEvent’ is not a direct base of ‘CallbackEvent’
66 | CallbackEvent(const CallbackEvent& event) : wxCommandEvent(event)
| ^~~~~~~~~~~~~~
wx-app.h: In member function ‘wxEvent* CallbackEvent::Clone() const’:
wx-app.h:72:64: error: cannot convert ‘CallbackEvent*’ to ‘wxEvent*’ in return
72 | wxEvent* Clone() const { return new CallbackEvent(*this); }
| ^
wx-app.h: At global scope:
wx-app.h:84:30: error: invalid use of incomplete type ‘class wxCommandEvent’
84 | class PopupMenuEvent: public wxCommandEvent
| ^~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/wx.h:24,
from wx-app.h:6,
from wx-main.cc:1:
/usr/include/wx-3.0/wx/event.h:632:28: note: forward declaration of ‘class wxCommandEvent’
632 | class WXDLLIMPEXP_FWD_CORE wxCommandEvent;
| ^~~~~~~~~~~~~~
In file included from wx-main.cc:1:
wx-app.h:87:42: error: ‘wxMenu’ has not been declared
87 | PopupMenuEvent(wxWindow* window, wxMenu* menu, int* x, int* y) : wxCommandEvent(WX_POPUP_MENU_EVENT)
| ^~~~~~
wx-app.h:105:9: error: ‘wxMenu’ does not name a type; did you mean ‘wxMin’?
105 | wxMenu* GetMenu() const { return menu; }
| ^~~~~~
| wxMin
wx-app.h:112:9: error: ‘wxMenu’ does not name a type; did you mean ‘wxMin’?
112 | wxMenu* menu;
| ^~~~~~
| wxMin
wx-app.h: In constructor ‘PopupMenuEvent::PopupMenuEvent(wxWindow*, int*, int*, int*)’:
wx-app.h:87:74: error: type ‘wxCommandEvent’ is not a direct base of ‘PopupMenuEvent’
87 | enuEvent(wxWindow* window, wxMenu* menu, int* x, int* y) : wxCommandEvent(WX_POPUP_MENU_EVENT)
| ^~~~~~~~~~~~~~
wx-app.h:90:23: error: ‘class PopupMenuEvent’ has no member named ‘menu’
90 | this->menu = menu;
| ^~~~
wx-app.h: In copy constructor ‘PopupMenuEvent::PopupMenuEvent(const PopupMenuEvent&)’:
wx-app.h:94:55: error: type ‘wxCommandEvent’ is not a direct base of ‘PopupMenuEvent’
94 | PopupMenuEvent(const PopupMenuEvent& event) : wxCommandEvent(event)
| ^~~~~~~~~~~~~~
wx-app.h:97:23: error: ‘class PopupMenuEvent’ has no member named ‘menu’
97 | this->menu = event.GetMenu();
| ^~~~
wx-app.h:97:36: error: ‘const class PopupMenuEvent’ has no member named ‘GetMenu’
97 | this->menu = event.GetMenu();
| ^~~~~~~
wx-app.h: In member function ‘wxEvent* PopupMenuEvent::Clone() const’:
wx-app.h:102:65: error: cannot convert ‘PopupMenuEvent*’ to ‘wxEvent*’ in return
102 | wxEvent* Clone() const { return new PopupMenuEvent(*this); }
| ^
wx-app.h: At global scope:
wx-app.h:142:21: error: invalid use of incomplete type ‘class wxFrame’
142 | class Frame: public wxFrame
| ^~~~~~~
In file included from /usr/include/wx-3.0/wx/wx.h:26,
from wx-app.h:6,
from wx-main.cc:1:
/usr/include/wx-3.0/wx/utils.h:54:28: note: forward declaration of ‘class wxFrame’
54 | class WXDLLIMPEXP_FWD_CORE wxFrame;
| ^~~~~~~
In file included from wx-main.cc:1:
wx-app.h:145:54: error: ‘wxPoint’ does not name a type; did you mean ‘wxJoin’?
145 | Frame(App* app, const wxString& title, const wxPoint& pos,
| ^~~~~~~
| wxJoin
wx-app.h:146:31: error: ‘wxSize’ does not name a type
146 | const wxSize& size);
| ^~~~~~
wx-app.h:152:9: error: ‘wxMenu’ does not name a type; did you mean ‘wxMin’?
152 | wxMenu* GetMenu();
| ^~~~~~
| wxMin
wx-app.h:169:9: error: ‘wxMenu’ does not name a type; did you mean ‘wxMin’?
169 | wxMenu* menu;
| ^~~~~~
| wxMin
make[1]: *** [Makefile:6217: pcem-wx-main.o] Error 1
make[1]: Leaving directory '/home/gmp/PCemV17Linux/src'
make: *** [Makefile:365: all-recursive] Error 1