Here's a weird one (at least to me). I have the following declaration to init the physics in my code:
Code: Select all
irr::newton::IWorld* physics_world = irr::newton::createPhysicsWorld(device);
I've included IrrNewt.hpp, and I have the #pragma comment lines for Irrlicht.lib and IrrNewt.lib. The dll files for IrrNewt and Newton are in the same directory as my source code. I am using Visual Studio 2005 Standard Edition. When I try to run my code, it fails at the above line with the following error:
Runtime Error!
R6025
- pure virtual function call
However, all the examples I've looked at use the exact same syntax I have above (except they use p_world instead of physics_world), so it appears that createPhysicsWorld() is a static function of the newton namespace. Any suggestions? I'm confused.
- Dybs