developkelly21
10-12-2010 19:25:47
Hi,
I have downloaded the NxOgre Detritus and was trying to create a simple scene using Critter as the render system, however Critter seems to create a lot of linker errors, I have all the include directories set up and have compiled Critter Vc9 successfully. If i comment out the lines where the rendersystem is created it works, so all the include files are in place and being found. I am i missing someting really obvious??? thanks for any replys
Sample linker error: BasePhysX.obj : error LNK2019: unresolved external symbol "public: __thiscall Critter::BodyDescription::~BodyDescription(void)" (??1BodyDescription@Critter@@QAE@XZ) referenced in function "protected: void __thiscall BasePhysX::setUpPhysics(void)" (?setUpPhysics@BasePhysX@@IAEXXZ)
I have downloaded the NxOgre Detritus and was trying to create a simple scene using Critter as the render system, however Critter seems to create a lot of linker errors, I have all the include directories set up and have compiled Critter Vc9 successfully. If i comment out the lines where the rendersystem is created it works, so all the include files are in place and being found. I am i missing someting really obvious??? thanks for any replys
void BasePhysX::setUpPhysics()
{
// Create the world.
mWorld = NxOgre::World::createWorld();
mWorld->getRemoteDebugger()->connect();
// Create the scene
NxOgre::SceneDescription scene_description;
scene_description.mGravity = NxOgre::Constants::MEAN_EARTH_GRAVITY;
scene_description.mUseHardware = false;
mScene = mWorld->createScene(scene_description);
// Set default material properties
mDefaultMaterial = mScene->getMaterial(0);
mDefaultMaterial->setRestitution(0.1f);
mDefaultMaterial->setDynamicFriction(0.9);
mDefaultMaterial->setStaticFriction(0.5);
// Plane creation
mScene->createSceneGeometry(NxOgre::PlaneGeometryDescription());
//This is the line that creates all the linker errors
// Create the rendersystem.
mRenderSystem = new Critter::RenderSystem(mScene, mSceneMgr);
//mRenderSystem->setVisualisationMode(NxOgre::Enums::VisualDebugger_ShowAll);
//Setup a BodyDescription.
Critter::BodyDescription bodyDescription;
bodyDescription.mMass = 40.0f; // Set the mass to 40kg.
// Finally create the body.
mBody = mRenderSystem->createBody(NxOgre::BoxDescription(1,1,1), NxOgre::Vec3(0,5,0), "cube.1m.mesh", bodyDescription);
}
Sample linker error: BasePhysX.obj : error LNK2019: unresolved external symbol "public: __thiscall Critter::BodyDescription::~BodyDescription(void)" (??1BodyDescription@Critter@@QAE@XZ) referenced in function "protected: void __thiscall BasePhysX::setUpPhysics(void)" (?setUpPhysics@BasePhysX@@IAEXXZ)