Although kind of Ogre-related, it's still a general coding issue (or more likely a proof of my incompetence in anything object-oriented), so I thought I'd post
it here.
I try to get OgreNewt working with VS2010. It's not going well. I was able to build the wrapper itself after commenting out a function that doesn't seems to be used in any of the demos and calls to a function that has been removed from Newton a few versions ago. I was able to build some of the demos, too. But when I try to build any of the demos which use some kind of raycasting, I get to a part I can't figure out.
So the compiler fails with this:
Code: Select all
1>OgreNewtonApplication.cpp(139): error C2259: 'OgreNewt::BasicRaycast' : cannot instantiate abstract class
1> due to following members:
1> 'bool OgreNewt::Raycast::userCallback(OgreNewt::Body *,OgreNewt::CollisionPtr &,Ogre::Real,const Ogre::Vector3 &,int)' : is abstract
1> c:\src-vs\ogrenewt\inc\OgreNewt_RayCast.h(65) : see declaration of 'OgreNewt::Raycast::userCallback'
And the most important question is, how come this code builds fine with GCC and VS9, but not with VS10?