Problem with IEventReceiver.h

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
Jim121
Posts: 21
Joined: Sat Oct 11, 2008 2:23 am

Problem with IEventReceiver.h

Post by Jim121 »

I have lately upgraded from irrlicht 1.3 to 1.5 and the compiler "Dev_C++" has given the following error message.


In function `int main()':

cannot declare variable `receiver' to be of type `MyEventReceiver'

because the following virtual functions are abstract:

virtual bool irr::IEventReceiver::OnEvent(const irr::SEvent&)

no matching function for call to `irr::scene::ISceneManager::addHillPlaneMesh(const char[7], irr::core::dimension2d<irr::f32>, irr::core::dimension2d<irr::s32>, int, int, irr::core::dimension2d<irr::f32>, irr::core::dimension2d<irr::f32>)'

candidates are: virtual irr::scene::IAnimatedMesh* irr::scene::ISceneManager::addHillPlaneMesh(const irr::c8*, const irr::core::dimension2d<irr::f32>&, const irr::core::dimension2d<irr::u32>&, irr::video::SMaterial*, irr::f32, const irr::core::dimension2d<irr::f32>&, const irr::core::dimension2d<irr::f32>&)

thanks in advance :)
Open Conquest Developer
web site:
http://openconquest.webs.com/
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: Problem with IEventReceiver.h

Post by randomMesh »

Jim121 wrote:cannot declare variable `receiver' to be of type `MyEventReceiver'

because the following virtual functions are abstract:

virtual bool irr::IEventReceiver::OnEvent(const irr::SEvent&)
The signature of the OnEvent method has changed.

try the signature your compiler suggests:

Code: Select all

bool OnEvent(const irr::SEvent& event);
Jim121 wrote: no matching function for call to `irr::scene::ISceneManager::addHillPlaneMesh(const char[7], irr::core::dimension2d<irr::f32>, irr::core::dimension2d<irr::s32>, int, int, irr::core::dimension2d<irr::f32>, irr::core::dimension2d<irr::f32>)'

candidates are: virtual irr::scene::IAnimatedMesh* irr::scene::ISceneManager::addHillPlaneMesh(const irr::c8*, const irr::core::dimension2d<irr::f32>&, const irr::core::dimension2d<irr::u32>&, irr::video::SMaterial*, irr::f32, const irr::core::dimension2d<irr::f32>&, const irr::core::dimension2d<irr::f32>&)
The signature of the addHillPlaneMesh method also has changed.
The error message tells you also what has changed.
Jim121
Posts: 21
Joined: Sat Oct 11, 2008 2:23 am

Post by Jim121 »

thanks
Open Conquest Developer
web site:
http://openconquest.webs.com/
Post Reply