Hello,
I try to recompile my project with Irrlicht 1.4 beta but i have new compilation errors i never had with irrlicht 1.3 :
newt6.cpp(11) : error C2259: 'CMainMenu' : cannot instantiate abstract class
due to following members:
'bool irr::IEventReceiver::OnEvent(const irr::SEvent &)' : is abstract
d:\program files\irrlicht-1.4beta\include\IEventReceiver.h(256) : see declaration of 'irr::IEventReceiver::OnEvent'
Something has changed with OnEvent but how to use now ?
Thanks
Eviral
Irrlicht 1.4 beta : cannot instantiate abstract class
-
- Posts: 7
- Joined: Wed Sep 19, 2007 3:58 pm
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
In your code.enigmaseti wrote:same problem, but where do you change it at?
As hybrid wrote, the event is now a constant reference.
So you have to write
Code: Select all
bool OnEvent(const irr::SEvent& event)
{
}
Code: Select all
bool OnEvent(irr::SEvent event)
{
}
Well, I've been trying to port iamarcamera to irrlicht 1.4b, and... I fixed everything I could.
This error was left:
And here's how I declared it on the camera class:
Thanks in advance.
This error was left:
Code: Select all
icamerascenenode.h:
virtual const SViewFrustum* getViewFrustum() const = 0;
Code: Select all
virtual const SViewFrustum* getViewFrustrum() const;
Code: Select all
error C2259: 'irr::scene::IamarCamera' : cannot instantiate abstract class
due to following members:
'const irr::scene::SViewFrustum *irr::scene::ICameraSceneNode::getViewFrustum(void) const' : is abstract
d:\irrlicht-1.4beta\include\icamerascenenode.h(112) : see declaration of 'irr::scene::ICameraSceneNode::getViewFrustum'
It's "Frustum" not "Frustrum".
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Hehe - I only did see it that fast because you're not the first one who made that typo ;-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm