Page 1 of 1

Problems with Tiger and wxNotebookPage

Posted: Wed Jul 20, 2005 7:36 pm
by Morfio
Hi,

I'd compiled wxWidgets under Mac OS X Tiger (cd <wx_basedir>; ../configure; make; sudo su; make install). It seems to work great.

But then I tried to compile my project. There are many errors with wxNotebookPage:

Code: Select all

vaddress.h:82: error: ISO C++ forbids declaration of 'wxNotebookPage' with no type
vaddress.h:82: error: expected %<;%> before '*' token
This program compiles under Windows 2000, FreeBSD 5.4 (and 5.4rc), Linux (SuSE, Gentoo) and Mac OS X Panther.

Here is an example of the code:

Code: Select all

// Notebooks
wxNotebook *nbAddress;
wxNotebookPage *nbpAdresse;
wxNotebookPage *nbpLiquiditaet;
Also I tried to compile wxWidgets with --with-gui and --enable-notebook and other things like --with-cocoa ... every time the same errors.

Is der any possibility to terminate them?

Sorry about my bad english (I'm from germany).

Thanks,

Morfio ...

Posted: Fri Jul 22, 2005 12:04 am
by Ryan Norton
wxNotebookPage is just a typedef for wxWindow in notebook.h... the errors sure are strange... however you can just use a wxWindow or wxPanel in its place if it gives you too much trouble

Posted: Sat Jul 23, 2005 11:37 am
by Morfio
I could not solve the problems. With 2.6.0 it works fine. After compiling 2.6.1 there was a directory called wx2.5. I'd deleted it und linked wx-config to /usr/bin. Now wx works fine.