[Help]Linker error with PLSM2 from CVS + MinGW C::B

Xavyiy

13-08-2007 04:03:48

Hi!,
I'm tried to compile PLSM2 from CVS but it fails at linking:

..\obj\Release\src\OgrePagingLandScapeSceneManager.o:OgrePagingLandScapeSceneManager.cpp:(.text+0x1f60):: undefined reference to `Ogre::PagingLandScapeAxisAlignedBoxSceneQuery::PagingLandScapeAxisAlignedBoxSceneQuery(Ogre::SceneManager*)'
..\obj\Release\src\OgrePagingLandScapeSceneManager.o:OgrePagingLandScapeSceneManager.cpp:(.text$_ZN4Ogre31PagingLandScapeMeshDecalFactoryC1Ev[Ogre::PagingLandScapeMeshDecalFactory::PagingLandScapeMeshDecalFactory()]+0x16):: undefined reference to `vtable for Ogre::PagingLandScapeMeshDecalFactory'
:: === Build finished: 2 errors, 0 warnings ===


I call -lOgreMain in linking,

sorry for my little English!

P.D.: I'm using: MingW Toolbox + Code::Blocks + Ogre_SDK for MingW 1.4

Xavyiy

13-08-2007 10:28:58

I have read a lot of and in this post:

http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=4116

is the solution.

The Code::Blocks proyect script in CVS is wrong, it necesary add two .cpp in the proyect, not idea cause this files are missing in the cvs script(posible don't save the changes before upload to cvs?) now it seems to compile and linking!

;)