please help me (my first project)
Posted: Mon Aug 23, 2010 6:52 pm
I opened: Setings-Tags options-include file and added my library path, which I received the command `wx-config - cxxflags`.
I also added __WXGTK__ in advanced - tokens.
When you try to build the program I get these errors. What other options should be added to create a project wxWidget?
please help me.
---------- Build Started --------
/ Bin / sh-c '"make"-j 8-f "BookLib_wsp.mk"'
---------- Building project: [BookLib - Debug ]----------
Warning: No config found to match: / usr / local / bin / wx-config - cxxflags - unicode = yes - debug = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.
Warning: No config found to match: / usr / local / bin / wx-config - debug = yes - libs - unicode = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.
make [1]: Entering directory `/ home / midisa / Projects'
g-c "/ home / midisa / Projects / gui.cpp"-g-D__WX__-o. / Debug / gui.o "-I."
g-c "/ home / midisa / Projects / main.cpp"-g-D__WX__-o. / Debug / main.o "-I."
In file included from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / main.h: 18:19: error: wx / wx.h: No such file or directory
In file included from / home / midisa / Projects / main.h: 20,
from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / gui.h: 11:21: error: wx / intl.h: No such file or directory
/ Home / midisa / Projects / gui.h: 13:23: error: wx / string.h: No such file or directory
/ Home / midisa / Projects / gui.h: 14:23: error: wx / bitmap.h: No such file or directory
/ Home / midisa / Projects / gui.h: 15:22: error: In file included from / home / midisa / Projects / gui.cpp: 8wx/image.h: No such file or directory
:
/ Home / midisa / Projects / gui.h: 11:21: error: wx / intl.h: No such file or directory
/ Home / midisa / Projects / gui.h: 16:21: error: wx / icon.h: No such file or directory
/ Home / midisa / Projects / gui.h: 13:23: error: wx / string.h: No such file or directory
/ Home / midisa / Projects / gui.h: 17:21: error: wx / menu.h: No such file or directory
/ Home / midisa / Projects / gui.h: 14:23: error: wx / bitmap.h: No such file or directory
/ Home / midisa / Projects / gui.h: 18:23: error: wx / gdicmn.h: No such file or directory
/ Home / midisa / Projects / gui.h: 15:22: error: wx / image.h: No such file or directory
/ Home / midisa / Projects / gui.h: 19:21: error: wx / font.h: No such file or directory
/ Home / midisa / Projects / gui.h: 16:21: error: wx / icon.h: No such file or directory
/ Home / midisa / Projects / gui.h: 20:23: error: wx / colour.h: No such file or directory / home / midisa / Projects / gui.h: 17:21:
error: wx / menu.h: No such file or directory
/ Home / midisa / Projects / gui.h: 18:23: error: wx / gdicmn.h: No such file or directory
/ Home / midisa / Projects / gui.h: 21:25: error: wx / settings.h: No such file or directory
/ Home / midisa / Projects / gui.h: 19:21: error: wx / font.h: No such file or directory
/ Home / midisa / Projects / gui.h: 22:22: error: wx / sizer.h: No such file or directory
/ Home / midisa / Projects / gui.h: 20:23: error: wx / colour.h: No such file or directory
/ Home / midisa / Projects / gui.h: 23:25: error: wx / statusbr.h: No such file or directory
/ Home / midisa / Projects / gui.h: 21:25: error: wx / settings.h: No such file or directory
/ Home / midisa / Projects / gui.h: 24:22: error: wx / frame.h: No such file or directory
/ Home / midisa / Projects / gui.h: 22:22: error: wx / sizer.h: No such file or directory
/ Home / midisa / Projects / gui.h: 23:25: error: wx / statusbr.h: No such file or directory
In file included from / home / midisa / Projects / main.h: 20,
from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / gui.h: 33: error: expected class-name before '(' token
/ Home / midisa / Projects / gui.h: 24:22: error: wx / frame.h: No such file or directory / home / midisa / Projects / gui.h: 37: error: ISO C forbids declaration of 'wxMenuBar 'with no type
/ Home / midisa / Projects / gui.h: 37: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 38: error: ISO C forbids declaration of 'wxMenu' with no type
/ Home / midisa / Projects / gui.h: 38: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 39: error: ISO C forbids declaration of 'wxStatusBar' with no type
/ Home / midisa / Projects / gui.h: 39: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 42: error: 'wxCloseEvent' has not been declared
/ Home / midisa / Projects / gui.h: 43: error: 'wxCommandEvent' has not been declared
In file included from / home / midisa / Projects / gui.cpp: 8:
/ Home / midisa / Projects / gui.h: 33: error: expected class-name before '(' token
/ Home / midisa / Projects / gui.h: 48: error: expected ')' before '*' token
/ Home / midisa / Projects / gui.h: 37: error: ISO C forbids declaration of 'wxMenuBar' with no type
/ Home / midisa / Projects / gui.h: 37: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 38: error: ISO C forbids declaration of 'wxMenu' with no type
/ Home / midisa / Projects / gui.h: 38: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 39: error: ISO C forbids declaration of 'wxStatusBar' with no type
/ Home / midisa / Projects / gui.h: 39: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 42: error: 'wxCloseEvent' has not been declared
/ Home / midisa / Projects / gui.h: 43: error: 'wxCommandEvent' has not been declared
/ Home / midisa / Projects / gui.h: 48: error: expected ')' before '*' token
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnCloseFrame (int &)':
/ Home / midisa / Projects / gui.h: 42: error: request for member 'Skip' in 'event', which is of non-class type 'int'
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnCloseFrame (int &)':
/ Home / midisa / Projects / gui.h: 42: error: request for member 'Skip' in 'event', which is of non-class type 'int'
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnExitClick (int &)':
/ Home / midisa / Projects / gui.h: 43: error: request for member 'Skip' in 'event', which is of non-class type 'int'
/ Home / midisa / Projects / gui.cpp: At global scope:
/ Home / midisa / Projects / gui.cpp: 12: error: expected ')' before '*' token
/ Home / midisa / Projects / gui.cpp: In destructor 'MainFrameBase:: ~ MainFrameBase ()':
/ Home / midisa / Projects / gui.cpp: 43: error: 'class MainFrameBase' has no member named 'Disconnect'
/ Home / midisa / Projects / gui.cpp: 43: error: 'wxEVT_CLOSE_WINDOW' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 43: error: 'wxCloseEventHandler' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 44: error: 'class MainFrameBase' has no member named 'Disconnect'
/ Home / midisa / Projects / gui.cpp: 44: error: 'wxID_ANY' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 44: error: 'wxEVT_COMMAND_MENU_SELECTED' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 44: error: 'wxCommandEventHandler' was not declared in this scope
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnExitClick (int &)':
/ Home / midisa / Projects / gui.h: 43: error: request for member 'Skip' in 'event', which is of non-class type 'int'
In file included from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / main.h: At global scope:
/ Home / midisa / Projects / main.h: 27: error: expected class-name before '(' token
/ Home / midisa / Projects / main.h: 39: error: expected constructor, destructor, or type conversion before 'class'
/ Home / midisa / Projects / main.cpp: 17: error: expected constructor, destructor, or type conversion before ';' token
/ Home / midisa / Projects / main.cpp: In member function 'virtual bool MainApp:: OnInit ()':
/ Home / midisa / Projects / main.cpp: 25: error: expected type-specifier before 'MainFrame'
/ Home / midisa / Projects / main.cpp: 25: error: expected ')' before 'MainFrame'
/ Home / midisa / Projects / main.cpp: 25: error: 'SetTopWindow' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 26: error: 'GetTopWindow' was not declared in this scope
/ Home / midisa / Projects / main.cpp: At global scope:
/ Home / midisa / Projects / main.cpp: 36: error: 'MainFrame' has not been declared
/ Home / midisa / Projects / main.cpp: 36: error: expected constructor, destructor, or type conversion before '(' tokenmake [1]: *** [Debug / gui.o] Error 1
make [1]: *** Waiting for unfinished jobs ...
/ Home / midisa / Projects / main.cpp: 40: error: expected constructor, destructor, or type conversion before '::' token
/ Home / midisa / Projects / main.cpp: 44: error: 'MainFrame' has not been declared
/ Home / midisa / Projects / main.cpp: 44: error: variable or field 'OnCloseFrame' declared void
/ Home / midisa / Projects / main.cpp: 44: error: 'wxCloseEvent' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 44: error: 'event' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 49: error: 'MainFrame' has not been declared
/ Home / midisa / Projects / main.cpp: 49: error: variable or field 'OnExitClick' declared void
/ Home / midisa / Projects / main.cpp: 49: error: 'wxCommandEvent' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 49: error: 'event' was not declared in this scope
make [1]: *** [Debug / main.o] Error 1
make [1]: Leaving directory `/ home / midisa / Projects'
make: *** [All] Error 2
---------- Build Ended ----------
88 errors, 3 warnings
I also added __WXGTK__ in advanced - tokens.
When you try to build the program I get these errors. What other options should be added to create a project wxWidget?
please help me.
---------- Build Started --------
/ Bin / sh-c '"make"-j 8-f "BookLib_wsp.mk"'
---------- Building project: [BookLib - Debug ]----------
Warning: No config found to match: / usr / local / bin / wx-config - cxxflags - unicode = yes - debug = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.
Warning: No config found to match: / usr / local / bin / wx-config - debug = yes - libs - unicode = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.
make [1]: Entering directory `/ home / midisa / Projects'
g-c "/ home / midisa / Projects / gui.cpp"-g-D__WX__-o. / Debug / gui.o "-I."
g-c "/ home / midisa / Projects / main.cpp"-g-D__WX__-o. / Debug / main.o "-I."
In file included from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / main.h: 18:19: error: wx / wx.h: No such file or directory
In file included from / home / midisa / Projects / main.h: 20,
from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / gui.h: 11:21: error: wx / intl.h: No such file or directory
/ Home / midisa / Projects / gui.h: 13:23: error: wx / string.h: No such file or directory
/ Home / midisa / Projects / gui.h: 14:23: error: wx / bitmap.h: No such file or directory
/ Home / midisa / Projects / gui.h: 15:22: error: In file included from / home / midisa / Projects / gui.cpp: 8wx/image.h: No such file or directory
:
/ Home / midisa / Projects / gui.h: 11:21: error: wx / intl.h: No such file or directory
/ Home / midisa / Projects / gui.h: 16:21: error: wx / icon.h: No such file or directory
/ Home / midisa / Projects / gui.h: 13:23: error: wx / string.h: No such file or directory
/ Home / midisa / Projects / gui.h: 17:21: error: wx / menu.h: No such file or directory
/ Home / midisa / Projects / gui.h: 14:23: error: wx / bitmap.h: No such file or directory
/ Home / midisa / Projects / gui.h: 18:23: error: wx / gdicmn.h: No such file or directory
/ Home / midisa / Projects / gui.h: 15:22: error: wx / image.h: No such file or directory
/ Home / midisa / Projects / gui.h: 19:21: error: wx / font.h: No such file or directory
/ Home / midisa / Projects / gui.h: 16:21: error: wx / icon.h: No such file or directory
/ Home / midisa / Projects / gui.h: 20:23: error: wx / colour.h: No such file or directory / home / midisa / Projects / gui.h: 17:21:
error: wx / menu.h: No such file or directory
/ Home / midisa / Projects / gui.h: 18:23: error: wx / gdicmn.h: No such file or directory
/ Home / midisa / Projects / gui.h: 21:25: error: wx / settings.h: No such file or directory
/ Home / midisa / Projects / gui.h: 19:21: error: wx / font.h: No such file or directory
/ Home / midisa / Projects / gui.h: 22:22: error: wx / sizer.h: No such file or directory
/ Home / midisa / Projects / gui.h: 20:23: error: wx / colour.h: No such file or directory
/ Home / midisa / Projects / gui.h: 23:25: error: wx / statusbr.h: No such file or directory
/ Home / midisa / Projects / gui.h: 21:25: error: wx / settings.h: No such file or directory
/ Home / midisa / Projects / gui.h: 24:22: error: wx / frame.h: No such file or directory
/ Home / midisa / Projects / gui.h: 22:22: error: wx / sizer.h: No such file or directory
/ Home / midisa / Projects / gui.h: 23:25: error: wx / statusbr.h: No such file or directory
In file included from / home / midisa / Projects / main.h: 20,
from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / gui.h: 33: error: expected class-name before '(' token
/ Home / midisa / Projects / gui.h: 24:22: error: wx / frame.h: No such file or directory / home / midisa / Projects / gui.h: 37: error: ISO C forbids declaration of 'wxMenuBar 'with no type
/ Home / midisa / Projects / gui.h: 37: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 38: error: ISO C forbids declaration of 'wxMenu' with no type
/ Home / midisa / Projects / gui.h: 38: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 39: error: ISO C forbids declaration of 'wxStatusBar' with no type
/ Home / midisa / Projects / gui.h: 39: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 42: error: 'wxCloseEvent' has not been declared
/ Home / midisa / Projects / gui.h: 43: error: 'wxCommandEvent' has not been declared
In file included from / home / midisa / Projects / gui.cpp: 8:
/ Home / midisa / Projects / gui.h: 33: error: expected class-name before '(' token
/ Home / midisa / Projects / gui.h: 48: error: expected ')' before '*' token
/ Home / midisa / Projects / gui.h: 37: error: ISO C forbids declaration of 'wxMenuBar' with no type
/ Home / midisa / Projects / gui.h: 37: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 38: error: ISO C forbids declaration of 'wxMenu' with no type
/ Home / midisa / Projects / gui.h: 38: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 39: error: ISO C forbids declaration of 'wxStatusBar' with no type
/ Home / midisa / Projects / gui.h: 39: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 42: error: 'wxCloseEvent' has not been declared
/ Home / midisa / Projects / gui.h: 43: error: 'wxCommandEvent' has not been declared
/ Home / midisa / Projects / gui.h: 48: error: expected ')' before '*' token
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnCloseFrame (int &)':
/ Home / midisa / Projects / gui.h: 42: error: request for member 'Skip' in 'event', which is of non-class type 'int'
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnCloseFrame (int &)':
/ Home / midisa / Projects / gui.h: 42: error: request for member 'Skip' in 'event', which is of non-class type 'int'
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnExitClick (int &)':
/ Home / midisa / Projects / gui.h: 43: error: request for member 'Skip' in 'event', which is of non-class type 'int'
/ Home / midisa / Projects / gui.cpp: At global scope:
/ Home / midisa / Projects / gui.cpp: 12: error: expected ')' before '*' token
/ Home / midisa / Projects / gui.cpp: In destructor 'MainFrameBase:: ~ MainFrameBase ()':
/ Home / midisa / Projects / gui.cpp: 43: error: 'class MainFrameBase' has no member named 'Disconnect'
/ Home / midisa / Projects / gui.cpp: 43: error: 'wxEVT_CLOSE_WINDOW' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 43: error: 'wxCloseEventHandler' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 44: error: 'class MainFrameBase' has no member named 'Disconnect'
/ Home / midisa / Projects / gui.cpp: 44: error: 'wxID_ANY' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 44: error: 'wxEVT_COMMAND_MENU_SELECTED' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 44: error: 'wxCommandEventHandler' was not declared in this scope
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnExitClick (int &)':
/ Home / midisa / Projects / gui.h: 43: error: request for member 'Skip' in 'event', which is of non-class type 'int'
In file included from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / main.h: At global scope:
/ Home / midisa / Projects / main.h: 27: error: expected class-name before '(' token
/ Home / midisa / Projects / main.h: 39: error: expected constructor, destructor, or type conversion before 'class'
/ Home / midisa / Projects / main.cpp: 17: error: expected constructor, destructor, or type conversion before ';' token
/ Home / midisa / Projects / main.cpp: In member function 'virtual bool MainApp:: OnInit ()':
/ Home / midisa / Projects / main.cpp: 25: error: expected type-specifier before 'MainFrame'
/ Home / midisa / Projects / main.cpp: 25: error: expected ')' before 'MainFrame'
/ Home / midisa / Projects / main.cpp: 25: error: 'SetTopWindow' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 26: error: 'GetTopWindow' was not declared in this scope
/ Home / midisa / Projects / main.cpp: At global scope:
/ Home / midisa / Projects / main.cpp: 36: error: 'MainFrame' has not been declared
/ Home / midisa / Projects / main.cpp: 36: error: expected constructor, destructor, or type conversion before '(' tokenmake [1]: *** [Debug / gui.o] Error 1
make [1]: *** Waiting for unfinished jobs ...
/ Home / midisa / Projects / main.cpp: 40: error: expected constructor, destructor, or type conversion before '::' token
/ Home / midisa / Projects / main.cpp: 44: error: 'MainFrame' has not been declared
/ Home / midisa / Projects / main.cpp: 44: error: variable or field 'OnCloseFrame' declared void
/ Home / midisa / Projects / main.cpp: 44: error: 'wxCloseEvent' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 44: error: 'event' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 49: error: 'MainFrame' has not been declared
/ Home / midisa / Projects / main.cpp: 49: error: variable or field 'OnExitClick' declared void
/ Home / midisa / Projects / main.cpp: 49: error: 'wxCommandEvent' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 49: error: 'event' was not declared in this scope
make [1]: *** [Debug / main.o] Error 1
make [1]: Leaving directory `/ home / midisa / Projects'
make: *** [All] Error 2
---------- Build Ended ----------
88 errors, 3 warnings