probems with simple veichle

danharibo

10-05-2006 20:05:11

when i use the simple veihicle class form ythe demos my compiler tells me:
Compiling...
cargame.cpp
c:\documents and settings\pro.com\my documents\visual studio 2005\projects\cargame\cargame\src\cargame.cpp(48) : error C2259: 'OgreNewt::Vehicle' : cannot instantiate abstract class
due to following members:
'void OgreNewt::Vehicle::setup(void)' : is abstract
c:\documents and settings\pro.com\desktop\ogreaddons\ogrenewt\ogrenewt_main\inc\ogrenewt_vehicle.h(161) : see declaration of 'OgreNewt::Vehicle::setup'
c:\documents and settings\pro.com\my documents\visual studio 2005\projects\cargame\cargame\src\cargame.cpp(51) : error C2664: 'OgreNewt::Vehicle::init' : cannot convert parameter 1 from 'Ogre::Entity *' to 'OgreNewt::Body *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
SimpleVehicle.cpp
Generating Code...
Build log was saved at "file://c:\Documents and Settings\pro.com\My Documents\Visual Studio 2005\Projects\cargame\cargame\obj\Debug\BuildLog.htm"
cargame - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

why is this going mad, it works with your demos.

walaber

15-05-2006 18:03:42

you have to inherit those functions in your inherited class, because they are completely empty in the base class.