Page 1 of 1

Wxwidgets+Irrlicht not funcionning in wxdec-c++

Posted: Sat Dec 02, 2006 10:22 am
by irrlichtmania
Please i need help.
I am using wxdev-c++.
I have try irrlicht and wxwidgets separatly successfully but not the integration of both.
I put the Mobeen code http://irrlicht.sourceforge.net/phpBB2/ ... =wxwidgets but the compiler give me the following error.

Image

Thanks

Posted: Sat Dec 02, 2006 10:35 am
by vitek
Expand the output window so that you can see the full text of the error message. I believe the compiler is telling you that you need to fully specify the function when you take a pointer to member function.

Most likely you'll have to change the line to...

Code: Select all

// assumes the EVT_MENU macro puts an & in front of the 2nd parameter
EVT_MENU(ID_EXIT, MyFrame::OnExit);

// if EVT_MENU doesn't put an & in there for you, then you'll have to do it
EVT_MENU(ID_EXIT, &MyFrame::OnExit);

Posted: Sat Dec 02, 2006 10:40 am
by irrlichtmania
The words are:

7 C:\Z00_Irrlicht\Exp_Integration\main.cpp ISO C++ forbids taking the address of a bound member function to form a pointer to member function. Say `&MyFrame::OnExit'
8 C:\Z00_Irrlicht\Exp_Integration\main.cpp ISO C++ forbids taking the address of a bound member function to form a pointer to member function. Say `&MyFrame::OnIdle'
C:\Z00_Irrlicht\Exp_Integration\Makefile.win [Build Error] exe: *** [Output/MingW/main.o] Error 1

Thanks

Posted: Sat Dec 02, 2006 10:49 am
by irrlichtmania
All right these error goes out, Thank you very much.

Now, the problem is that it crash before begining...

The project files are http://www.manuelfariasousa.pt/document ... ration.zip.

Thanks