can't compile release version

Virion

19-08-2007 11:51:44

I'd compiled nxogre with debug version and it worked. now i wanna compile it into release version but i got the following errors:

Creating library C:\Ogre3D\NxOgre\lib\NxOgre.lib and object C:\Ogre3D\NxOgre\lib\NxOgre.exp
NxOgreDebugRenderer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class Ogre::Quaternion const & __thiscall Ogre::SimpleRenderable::getWorldOrientation(void)const " (__imp_?getWorldOrientation@SimpleRenderable@Ogre@@UBEABVQuaternion@2@XZ)
NxOgreDebugRenderer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class Ogre::Vector3 const & __thiscall Ogre::SimpleRenderable::getWorldPosition(void)const " (__imp_?getWorldPosition@SimpleRenderable@Ogre@@UBEABVVector3@2@XZ)
NxOgreDebugRenderer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall Ogre::Renderable::getNormaliseNormals(void)const " (__imp_?getNormaliseNormals@Renderable@Ogre@@UBE_NXZ)
NxOgreDebugRenderer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: static class std::vector<class Ogre::Plane,class std::allocator<class Ogre::Plane> > const Ogre::Renderable::msDummyPlaneList" (__imp_?msDummyPlaneList@Renderable@Ogre@@1V?$vector@VPlane@Ogre@@V?$allocator@VPlane@Ogre@@@std@@@std@@B)
NxOgreDebugRenderer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class std::vector<class Ogre::Plane,class std::allocator<class Ogre::Plane> > const & __thiscall Ogre::Renderable::getClipPlanes(void)const " (__imp_?getClipPlanes@Renderable@Ogre@@UBEABV?$vector@VPlane@Ogre@@V?$allocator@VPlane@Ogre@@@std@@@std@@XZ)
NxOgreError.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall Ogre::Root::getCurrentFrameNumber(void)const " (__imp_?getCurrentFrameNumber@Root@Ogre@@QBEKXZ)
NxOgreBody.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Entity::setNormaliseNormals(bool)" (__imp_?setNormaliseNormals@Entity@Ogre@@QAEX_N@Z)
C:\Ogre3D\NxOgre\lib\NxOgre.dll : fatal error LNK1120: 7 unresolved externals


the nxogre.lib was successfully created, but not the dll. why?

betajaen

19-08-2007 12:04:15

Shoggoth?

Virion

19-08-2007 12:36:56

Ogre - latest cvs
NxOgre - latest svn

betajaen

19-08-2007 12:43:22

I haven't tried it with Shoggoth (the latest CVS), you should work with Eihort. I know some of the interface (NormaliseNormals) has changed.

Virion

19-08-2007 13:29:32

My project is using Shoggoth for my project. If my nxOgre is compiled with Eihort, will it compatible to my project?
By the way, why debug version works? :cry:

betajaen

19-08-2007 13:52:41

You could be linking an older version of Ogre in Debug. I assume you have the OGRE_HOME environmental variable pointing to the shoggoth directory?