I guess there's a packaging problem too. When I copy /usr/share/doc/wx2.8-examples/examples/samples/minimal/minimal.cpp somewhere, and try to build it using g++ -o minimal minimal.cpp `wx-config --cxxflags --libs`, I get:
minimal.cpp:62: error: invalid use of incomplete type 'struct wxFrame' /usr/include/wx-2.8/wx/utils.h:50: error: forward declaration of 'struct wxFrame' minimal.cpp:68: error: 'wxCommandEvent' has not been declared minimal.cpp:69: error: 'wxCommandEvent' has not been declared minimal.cpp:99: error: incomplete type 'wxFrame' used in nested name specifier minimal.cpp:100: error: 'wxCommandEventHandler' was not declared in this scope minimal.cpp:101: error: 'wxCommandEventHandler' was not declared in this scope minimal.cpp: In function 'wxAppConsole* wxCreateApp()': minimal.cpp:109: error: cannot allocate an object of abstract type 'MyApp' minimal.cpp:49: note: because the following virtual functions are pure within 'MyApp': /usr/include/wx-2.8/wx/app.h:89: note: virtual int wxAppConsole::OnRun() minimal.cpp: In member function 'virtual bool MyApp::OnInit()': minimal.cpp:127: error: 'class MyFrame' has no member named 'Show' minimal.cpp: In constructor 'MyFrame::MyFrame(const wxString&)': minimal.cpp:141: error: type 'wxFrame' is not a direct base of 'MyFrame' minimal.cpp: At global scope: minimal.cpp:175: error: variable or field 'OnQuit' declared void minimal.cpp:175: error: 'wxCommandEvent' was not declared in this scope minimal.cpp:175: error: expected primary-expression before ')' token minimal.cpp:181: error: variable or field 'OnAbout' declared void minimal.cpp:181: error: 'wxCommandEvent' was not declared in this scope minimal.cpp:181: error: expected primary-expression before ')' token If I build wxWidgets myself from source, there's no problem. It also happens when using wxWidgets 2.6 (switching to it using update-alternatives). I'm using Ubuntu 9.04 64bits too... -- StyledTextCtrl headers won't compile on Jaunty, appears to be just broken packaging https://bugs.launchpad.net/bugs/356038 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs -- universe-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/universe-bugs
