Code::Blocks Forums
User forums => Help => Topic started by: crzyone9584 on May 13, 2009, 06:27:36 am
-
Im trying to follow this tutorial on wxwidgets and c++
http://zetcode.com/tutorials/wxwidgetstutorial/firstprograms/
These are the errors i get.
||=== Ventaio Project, Debug ===|
/home/xxx/Documents/test/Ventaio Project/main.h|1|error: wx/wx.h: No such file or directory|
/home/xxx/Documents/test/Ventaio Project/main.h|4|error: expected class-name before ‘{’ token|
/home/xxx/Documents/test/Ventaio Project/simple.h|4|error: expected class-name before ‘{’ token|
/home/xxx/Documents/test/Ventaio Project/simple.h|6|error: expected ‘,’ or ‘...’ before ‘&’ token|
/home/xxx/Documents/test/Ventaio Project/simple.h|6|error: ISO C++ forbids declaration of ‘wxString’ with no type|
/home/xxx/Documents/test/Ventaio Project/main.cpp|6|error: expected constructor, destructor, or type conversion before ‘bool’|
||=== Build finished: 6 errors, 0 warnings ===|
How would i fix this?I tried searching google at no luck.
-
Did you carefully configure the wxWidgets' header file and libraries?
It seems the compiler can't find the wx/wx.h in the "include search path". :D
-
See i love forums. Im use to Visual Studio and VB.net so have a suggestion on how i go about this and where thw wx folder is included. and on that not once compiled will i need to inlude the folder wx so the files are there.
forgot to mention im running ubuntu 9.04
-
Create a standard wxWidgets preoject with the wizard and look at the build options to see how it can be done.
-
i didnt see anything about it. unless its part of the BUild/Release part of the setup. but like i said i didnt see anything.
-
i didnt see anything about it. unless its part of the BUild/Release part of the setup. but like i said i didnt see anything.
One way: "File -> New -> Project"
-
i didnt see anything about it. unless its part of the BUild/Release part of the setup. but like i said i didnt see anything.
One way: "File -> New -> Project"
no not that i mean where to include the search path. ive gon through the wizard and didnt see anything about including libraies adn where would wx folder be located on ubuntu 9.04
-
i didnt see anything about it. unless its part of the BUild/Release part of the setup. but like i said i didnt see anything.
One way: "File -> New -> Project"
no not that i mean where to include the search path. ive gon through the wizard and didnt see anything about including libraies adn where would wx folder be located on ubuntu 9.04
On linux it's done with wx-config, see the "Other options" of the compiler settings and the "Other linker options" of the linker settings.
But the thread leaves the scope of our (C::B-)forum.
It looks more like a lack of knowledge how to use wxWidgets and the questions should be asked in an apprpriate forum.
-
thanks for the help. I got it working.