News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Erros with wxwidgets and Codeblock debaugging/building

Started by crzyone9584, May 13, 2009, 06:27:36 AM

Previous topic - Next topic

crzyone9584

Im trying to follow this tutorial on wxwidgets and c++

http://zetcode.com/tutorials/wxwidgetstutorial/firstprograms/

These are the errors i get.

Quote||=== 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.


ollydbg

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
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

crzyone9584

#2
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

Jenna

Create a standard wxWidgets preoject with the wizard and look at the build options to see how it can be done.

crzyone9584

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.

Jenna

Quote from: crzyone9584 on May 13, 2009, 07:15:11 AM
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"

crzyone9584

Quote from: jens on May 13, 2009, 07:26:35 AM
Quote from: crzyone9584 on May 13, 2009, 07:15:11 AM
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

Jenna

Quote from: crzyone9584 on May 13, 2009, 07:30:44 AM
Quote from: jens on May 13, 2009, 07:26:35 AM
Quote from: crzyone9584 on May 13, 2009, 07:15:11 AM
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.

crzyone9584