+ -
当前位置:首页 → 问答吧 → 果然GCJ还是挺悲剧的嗯

果然GCJ还是挺悲剧的嗯

时间:2010-06-13

来源:互联网

装完CB之后我随便建了个wx工程,都是默认设置,编译出现如下错误:(系统:Ubuntu 10.04)

/home/earthson/Documents/C/first/firstApp.h|13|error: wx/app.h: No such file or directory|
/home/earthson/Documents/C/first/firstMain.h|14|error: wx/dialog.h: No such file or directory|
/home/earthson/Documents/C/first/firstMain.h|15|error: wx/sizer.h: No such file or directory|
/home/earthson/Documents/C/first/firstMain.h|16|error: wx/button.h: No such file or directory|
/home/earthson/Documents/C/first/firstMain.h|17|error: wx/statline.h: No such file or directory|
/home/earthson/Documents/C/first/firstMain.h|18|error: wx/stattext.h: No such file or directory|
/home/earthson/Documents/C/first/firstApp.cpp|14|error: wx/image.h: No such file or directory|
/home/earthson/Documents/C/first/firstApp.h|16|error: expected class-name before ‘{’ token|
/home/earthson/Documents/C/first/firstMain.h|22|error: expected class-name before ‘{’ token|
/home/earthson/Documents/C/first/firstMain.h|25|error: expected ‘)’ before ‘*’ token|
/home/earthson/Documents/C/first/firstMain.h|31|error: ‘wxCommandEvent’ has not been declared|
/home/earthson/Documents/C/first/firstMain.h|32|error: ‘wxCommandEvent’ has not been declared|
/home/earthson/Documents/C/first/firstMain.h|43|error: ISO C++ forbids declaration of ‘wxButton’ with no type|
/home/earthson/Documents/C/first/firstMain.h|43|error: expected ‘;’ before ‘*’ token|
/home/earthson/Documents/C/first/firstMain.h|44|error: ISO C++ forbids declaration of ‘wxButton’ with no type|
/home/earthson/Documents/C/first/firstMain.h|44|error: expected ‘;’ before ‘*’ token|
/home/earthson/Documents/C/first/firstMain.h|45|error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type|
/home/earthson/Documents/C/first/firstMain.h|45|error: expected ‘;’ before ‘*’ token|
/home/earthson/Documents/C/first/firstMain.h|46|error: ISO C++ forbids declaration of ‘wxStaticText’ with no type|
/home/earthson/Documents/C/first/firstMain.h|46|error: expected ‘;’ before ‘*’ token|
/home/earthson/Documents/C/first/firstMain.h|47|error: ISO C++ forbids declaration of ‘wxStaticLine’ with no type|
/home/earthson/Documents/C/first/firstMain.h|47|error: expected ‘;’ before ‘*’ token|
/home/earthson/Documents/C/first/firstMain.h|48|error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type|
/home/earthson/Documents/C/first/firstMain.h|48|error: expected ‘;’ before ‘*’ token|
/home/earthson/Documents/C/first/firstMain.h|51|error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type|
/home/earthson/Documents/C/first/firstMain.h|52|error: expected ‘;’ before ‘}’ token|
/home/earthson/Documents/C/first/firstMain.h|52|error: expected ‘;’ before ‘}’ token|
/home/earthson/Documents/C/first/firstApp.cpp|17|error: expected constructor, destructor, or type conversion before ‘;’ token|
/home/earthson/Documents/C/first/firstApp.cpp||In member function ‘virtual bool firstApp::OnInit()’:|
/home/earthson/Documents/C/first/firstApp.cpp|23|error: ‘wxInitAllImageHandlers’ was not declared in this scope|
/home/earthson/Documents/C/first/firstApp.cpp|26|error: no matching function for call to ‘firstDialog::firstDialog(int)’|
/home/earthson/Documents/C/first/firstMain.h|22|note: candidates are: firstDialog::firstDialog()|
/home/earthson/Documents/C/first/firstMain.h|22|note: firstDialog::firstDialog(const firstDialog&)|
/home/earthson/Documents/C/first/firstApp.cpp|27|error: ‘SetTopWindow’ was not declared in this scope|
/home/earthson/Documents/C/first/firstApp.cpp|28|error: ‘class firstDialog’ has no member named ‘ShowModal’|
||=== Build finished: 32 errors, 0 warnings ===|

作者: Earthson   发布时间: 2010-06-13

晕,少装额个包
出现类似问题的朋友,装wxwidgets的时候,别漏下^^

作者: Earthson   发布时间: 2010-08-10