Cheriburo
13-11-2010 10:59:12
Hi everyone,
I've only recently started using Ogre and NxOgre but I encountered a problem building a project that uses Ogre and NxOgre.
I've tried rebuilding NxOgre but it still gives me these errors. Surprisingly, the program ran properly once before these errors appeared and has not been able to run since.
I only have these NxOgre-related codes in my project:
Also, here's my list of included libraries:
I've only recently started using Ogre and NxOgre but I encountered a problem building a project that uses Ogre and NxOgre.
1>Linking...
1>NxOgreOGRE3D_Debug.lib(OGRE3DRenderable.obj) : error LNK2001: unresolved external symbol "public: virtual class Ogre::VectorIterator<class std::vector<class Ogre::ShadowRenderable *,class std::allocator<class Ogre::ShadowRenderable *> > > __thiscall Ogre::MovableObject::getShadowVolumeRenderableIterator(enum Ogre::ShadowTechnique,class Ogre::Light const *,class Ogre::HardwareIndexBufferSharedPtr *,bool,float,unsigned long)" (?getShadowVolumeRenderableIterator@MovableObject@Ogre@@UAE?AV?$VectorIterator@V?$vector@PAVShadowRenderable@Ogre@@V?$allocator@PAVShadowRenderable@Ogre@@@std@@@std@@@2@W4ShadowTechnique@2@PBVLight@2@PAVHardwareIndexBufferSharedPtr@2@_NMK@Z)
1>NxOgreOGRE3D_Debug.lib(OGRE3DRenderable.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Ogre::ShadowCaster::generateShadowVolume(class Ogre::EdgeData *,class Ogre::HardwareIndexBufferSharedPtr const &,class Ogre::Light const *,class std::vector<class Ogre::ShadowRenderable *,class std::allocator<class Ogre::ShadowRenderable *> > &,unsigned long)" (?generateShadowVolume@ShadowCaster@Ogre@@MAEXPAVEdgeData@2@ABVHardwareIndexBufferSharedPtr@2@PBVLight@2@AAV?$vector@PAVShadowRenderable@Ogre@@V?$allocator@PAVShadowRenderable@Ogre@@@std@@@std@@K@Z)
1>NxOgreOGRE3D_Debug.lib(OGRE3DRenderable.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Ogre::AnimableObject::initialiseAnimableDictionary(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &)const " (?initialiseAnimableDictionary@AnimableObject@Ogre@@MBEXAAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z)
I've tried rebuilding NxOgre but it still gives me these errors. Surprisingly, the program ran properly once before these errors appeared and has not been able to run since.
I only have these NxOgre-related codes in my project:
// Setup NxOgre
void Setup_NxOgre ()
{
mWorld = NxOgre::World::createWorld();
mScene = mWorld->createScene();
mRenderSystem = new OGRE3DRenderSystem(mScene, mSceneMgr);
NxOgre::Box* box = new NxOgre::Box(100.0f,100.0f,100.0f);
mCube = mRenderSystem->createBody(box, NxOgre::Vec3(0.0f, 200.0f, 0.0f), "box.mesh");
}
Also, here's my list of included libraries:
#ifdef _DEBUG
#pragma comment (lib, "OgreMain_d.lib")
#pragma comment (lib, "OIS_d.lib")
#pragma comment (lib, "NxOgre_Debug.lib")
#pragma comment (lib, "NxOgreOGRE3D_Debug.lib")
#else
#pragma comment (lib, "OgreMain.lib")
#pragma comment (lib, "OIS.lib")
#pragma comment (lib, "NxOgre.lib")
#endif
#pragma comment (lib, "NxCharacter.lib")
#pragma comment (lib, "PhysXCooking.lib")
#pragma comment (lib, "PhysXLoader.lib")