[Help] Linker error with v1.2.1 and latest PagingLandscape

Raison

01-12-2006 20:15:11

I am trying to compile GOOF in MSVC 7.1 and have followed every instructions from the GOOF wiki, except that I use the latest PagingLandscape source from Tuan's website because the original source from ogreaddons seem to have an enum missing (RaySceneQueryFlags in OgrePagingLandScapeRaySceneQuery.h).

However, the compilation didn't went well. I keep getting the following error message:

Plugin_PagingLandScapeSceneManager2 error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::PagingLandScapeAxisAlignedBoxSceneQuery::execute(class Ogre::SceneQueryListener *)" (?execute@PagingLandScapeAxisAlignedBoxSceneQuery@Ogre@@UAEXPAVSceneQueryListener@2@@Z)

Plugin_PagingLandScapeSceneManager2 error LNK2019: unresolved external symbol "public: virtual __thiscall Ogre::PagingLandScapeAxisAlignedBoxSceneQuery::~PagingLandScapeAxisAlignedBoxSceneQuery(void)" (??1PagingLandScapeAxisAlignedBoxSceneQuery@Ogre@@UAE@XZ) referenced in function "public: virtual void * __thiscall Ogre::PagingLandScapeAxisAlignedBoxSceneQuery::`scalar deleting destructor'(unsigned int)" (??_GPagingLandScapeAxisAlignedBoxSceneQuery@Ogre@@UAEPAXI@Z)

Plugin_PagingLandScapeSceneManager2 error LNK2019: unresolved external symbol "public: __thiscall Ogre::PagingLandScapeAxisAlignedBoxSceneQuery::PagingLandScapeAxisAlignedBoxSceneQuery(class Ogre::SceneManager *)" (??0PagingLandScapeAxisAlignedBoxSceneQuery@Ogre@@QAE@PAVSceneManager@1@@Z) referenced in function "public: virtual class Ogre::AxisAlignedBoxSceneQuery * __thiscall Ogre::PagingLandScapeSceneManager::createAABBQuery(class Ogre::AxisAlignedBox const &,unsigned long)" (?createAABBQuery@PagingLandScapeSceneManager@Ogre@@UAEPAVAxisAlignedBoxSceneQuery@2@ABVAxisAlignedBox@2@K@Z)

Plugin_PagingLandScapeSceneManager2 fatal error LNK1120: 3 unresolved externals


Can someone tell what is wrong?

grizzley90

02-12-2006 01:59:06

Same linker errors except i have the latest ogre sdk, latest plsm cvs and i am compiling with msvc 2005

OgrePagingLandScapeSceneManager.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::PagingLandScapeAxisAlignedBoxSceneQuery::execute(class Ogre::SceneQueryListener *)" (?execute@PagingLandScapeAxisAlignedBoxSceneQuery@Ogre@@UAEXPAVSceneQueryListener@2@@Z)
OgrePagingLandScapeSceneManager.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall Ogre::PagingLandScapeAxisAlignedBoxSceneQuery::~PagingLandScapeAxisAlignedBoxSceneQuery(void)" (??1PagingLandScapeAxisAlignedBoxSceneQuery@Ogre@@UAE@XZ) referenced in function "public: virtual void * __thiscall Ogre::PagingLandScapeAxisAlignedBoxSceneQuery::`scalar deleting destructor'(unsigned int)" (??_GPagingLandScapeAxisAlignedBoxSceneQuery@Ogre@@UAEPAXI@Z)
OgrePagingLandScapeSceneManager.obj : error LNK2019: unresolved external symbol "public: __thiscall Ogre::PagingLandScapeAxisAlignedBoxSceneQuery::PagingLandScapeAxisAlignedBoxSceneQuery(class Ogre::SceneManager *)" (??0PagingLandScapeAxisAlignedBoxSceneQuery@Ogre@@QAE@PAVSceneManager@1@@Z) referenced in function "public: virtual class Ogre::AxisAlignedBoxSceneQuery * __thiscall Ogre::PagingLandScapeSceneManager::createAABBQuery(class Ogre::AxisAlignedBox const &,unsigned long)" (?createAABBQuery@PagingLandScapeSceneManager@Ogre@@UAEPAVAxisAlignedBoxSceneQuery@2@ABVAxisAlignedBox@2@K@Z)
..\bin\Debug/Plugin_PagingLandScapeSceneManager2_d.dll : fatal error LNK1120: 3 unresolved externals

tuan kuranes

02-12-2006 12:39:28

seem to have an enum missing (RaySceneQueryFlags in OgrePagingLandScapeRaySceneQuery.h).
Search on forum on to resolve this very easily.

Same linker errors
You need to add PagingLandScapeAxisAlignedBoxSceneQuery.cpp to the plsm2 project.