Thanks, this did the trick!
I already got a new problem, though... I added a new dialog using wxSmith to this project and tried to compile again. I didn't change anything else. This is what I get:
newdialog.h:14: error: expected class-name before ‘{’ token
newdialog.h:17: error: expected `)' before ‘*’ token
newdialog.h:33: error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type
newdialog.h:34: error: expected ‘;’ before ‘}’ token
newdialog.h:34: error: expected `;' before ‘}’ token
newdialog.cpp:3: error: ‘wxDialog’ has not been declared
newdialog.cpp:6: error: expected constructor, destructor, or type conversion before ‘END_EVENT_TABLE’
I'm using g++ 4.0.2 20050808.
Regards,
Victor