[fixed] subversion CIrrDeviceMacOSX.mm

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
mmasters
Posts: 11
Joined: Mon Jun 11, 2007 11:11 pm

[fixed] subversion CIrrDeviceMacOSX.mm

Post by mmasters »

I've checkout the code from subversion and I'm trying to build the code on MacOSX via xcode. When I build the code, I get a compiler error:

/Users/mmasters/Projects/irrlicht/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:700: error: cannot allocate an object of abstract type 'irr::CIrrDeviceMacOSX'

Are any of the committers looking at this?
Michael Masters
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Looks like some method signature is not properly set. Does the compiler tell which pure virtual isn't implemented?
mmasters
Posts: 11
Joined: Mon Jun 11, 2007 11:11 pm

Post by mmasters »

Sorry I didn't realize there was more to the error. I'm also getting the following:

CIrrDeviceMacOSX.h:24: note: because the following virtual functions are pure within 'irr::CIrrDeviceMacOSX':
IrrlichtDevice.h:156: note: virtual bool irr::IrrlichtDevice::isWindowFocused() const
IrrlichtDevice.h:160: note: virtual bool irr::IrrlichtDevice::isWindowMinimized() const
Michael Masters
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Ok, I've provided dummy implementations. Should compile again.
mmasters
Posts: 11
Joined: Mon Jun 11, 2007 11:11 pm

Post by mmasters »

Thanks! I've run into another problem though. I had to make the following changes:

+++ source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm (working copy)
@@ -483,14 +483,14 @@
}


-bool isWindowFocused() const
+bool CIrrDeviceMacOSX::isWindowFocused() const
{
// TODO: return proper value
return true;
}


-bool isWindowMinimized() const
+bool CIrrDeviceMacOSX::isWindowMinimized() const
{



Thanks for the help!!!
Michael Masters
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Oh yes, of course. I was in a hurry and since I cannot compile the code I simply didn't get any warning.
Post Reply