Wxwidgets+Irrlicht not funcionning in wxdec-c++

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
irrlichtmania
Posts: 4
Joined: Wed Aug 23, 2006 10:05 pm

Wxwidgets+Irrlicht not funcionning in wxdec-c++

Post 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
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post 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);
irrlichtmania
Posts: 4
Joined: Wed Aug 23, 2006 10:05 pm

Post 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
irrlichtmania
Posts: 4
Joined: Wed Aug 23, 2006 10:05 pm

Post 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
Post Reply