Author Topic: error from CB with wxWidgets~~~  (Read 4830 times)

FreeSouth

  • Guest
error from CB with wxWidgets~~~
« on: June 03, 2007, 11:05:48 am »
I don't change anythings about the HelloWorld by C::B + wxWidgets, but some error also happened~~~

-------------- Build: Debug in HelloTwo ---------------
Compiling: HelloTwoApp.cpp
/bin/sh: wx-config: not found
g++: /Zi:No such file or directory
Process terminated with status 1 (0 minutes, 2 seconds)
22 errors, 0 warnings
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.cpp:36: 错误: ‘SetTopWindow’ 在此作用域中尚未声明
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.cpp:35: 错误: ‘class HelloTwoFrame’ 没有名为 ‘Show’ 的成员
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.cpp:34: 错误: ‘NULL’ 在此作用域中尚未声明
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.cpp:31: 错误: ‘wxInitAllImageHandlers’ 在此作用域中尚未声明
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.cpp: In member function ‘virtual bool HelloTwoApp::OnInit()’:
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.cpp:25: 错误: expected constructor, destructor, or type conversion before ‘;’ token
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:46: 错误: expected `;' before ‘}’ token
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:46: 错误: expected ‘;’ before ‘}’ token
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:45: 错误: ISO C++ 不允许声明无类型的 ‘DECLARE_EVENT_TABLE’
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:42: 错误: expected ‘;’ before ‘*’ token
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:42: 错误: ISO C++ 不允许声明无类型的 ‘wxStatusBar’
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:32: 错误: ‘wxCommandEvent’ 未声明
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:31: 错误: ‘wxCommandEvent’ 未声明
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:25: 错误: expected `)' before ‘*’ token
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:22: 错误: expected class-name before ‘{’ token
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.h:24: 警告: ‘class HelloTwoApp’ 有虚函数却没有虚析构函数
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.h:24: 错误: expected class-name before ‘{’ token
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.cpp:22:22: 错误: wx/image.h:No such file or directory
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:18:25: 错误: wx/statusbr.h:No such file or directory
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:17:21: 错误: wx/menu.h:No such file or directory
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoMain.h:16:22: 错误: wx/frame.h:No such file or directory
在包含自 /root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.cpp:21 的文件中:
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.h:20:23: 错误: wx/wx.h:No such file or directory
/root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.h:13:23: 错误: wx/wxprec.h:No such file or directory
在包含自 /root/Desktop/Program/CB Simple/HelloTwo/HelloTwoApp.cpp:18 的文件中:

FreeSouth

  • Guest
Re: error from CB with wxWidgets~~~
« Reply #1 on: June 03, 2007, 11:07:26 am »
Compiling: HelloTwoApp.cpp
/bin/sh: wx-config: not found
g++: /Zi:No such file or directory

What can I do ~~~~

Help ~~

Offline Deschamps

  • Multiple posting newcomer
  • *
  • Posts: 120
Re: error from CB with wxWidgets~~~
« Reply #2 on: June 03, 2007, 06:02:26 pm »
Quote from: FreeSouth
/bin/sh: wx-config: not found

Have you installed wxWidgets on your system?

1) If the answer is "Yes": please, specify your environment as accurate as you think it's needed. Try to guess it isn't the way.
2) If the answer is "No": Please, refer to the wxWidgets site, your OS site or the related documentation (wikis, tutorials, previous post in forums like this, ...) for finding how to do it.

Regards.

Edit: and for god's sake! don't do your usual tasks as root  :shock:
« Last Edit: June 03, 2007, 06:06:59 pm by Deschamps »
Those who were seen dancing were thought to be insane by those who could not hear the music

FreeSouth

  • Guest
Re: error from CB with wxWidgets~~~
« Reply #3 on: June 03, 2007, 06:35:32 pm »
I have already solved this problem, ,,for I forgot some package but must to wxWidgets~~~

Regards.

Edit: I will give god a face , Thank you and thank god tooo~~