[SOLVED] Compile error

cobra8472

08-11-2007 15:56:24

Hey, hope you can help me out...

1>------ Build started: Project: OgreProject, Configuration: Release Win32 ------
1>Compiling...
1>CloudGeneration2.cpp
1>Linking...
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::update(void)" (?update@ImpostorPage@@UAEXXZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::setFade(bool,float,float)" (?setFade@ImpostorPage@@UAEX_NMM@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::setVisible(bool)" (?setVisible@ImpostorPage@@UAEX_N@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::removeEntities(void)" (?removeEntities@ImpostorPage@@UAEXXZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::build(void)" (?build@ImpostorPage@@UAEXXZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::addEntity(class Ogre::Entity *,class Ogre::Vector3 const &,class Ogre::Quaternion const &,class Ogre::Vector3 const &,class Ogre::ColourValue const &)" (?addEntity@ImpostorPage@@UAEXPAVEntity@Ogre@@ABVVector3@3@ABVQuaternion@3@1ABVColourValue@3@@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::setRegion(float,float,float,float)" (?setRegion@ImpostorPage@@UAEXMMMM@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall ImpostorPage::~ImpostorPage(void)" (??1ImpostorPage@@UAE@XZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::init(class PagedGeometry *)" (?init@ImpostorPage@@UAEXPAVPagedGeometry@@@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "protected: void __thiscall PagedGeometry::_addDetailLevel(class GeometryPageManager *,float,float)" (?_addDetailLevel@PagedGeometry@@IAEXPAVGeometryPageManager@@MM@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::setFade(bool,float,float)" (?setFade@BatchPage@@UAEX_NMM@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: void __thiscall PagedGeometry::update(void)" (?update@PagedGeometry@@QAEXXZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::setVisible(bool)" (?setVisible@BatchPage@@UAEX_N@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: void __thiscall PagedGeometry::setPageLoader(class PageLoader *)" (?setPageLoader@PagedGeometry@@QAEXPAVPageLoader@@@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::removeEntities(void)" (?removeEntities@BatchPage@@UAEXXZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: void __thiscall PagedGeometry::setPageSize(float)" (?setPageSize@PagedGeometry@@QAEXM@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::build(void)" (?build@BatchPage@@UAEXXZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: void __thiscall PagedGeometry::setInfinite(void)" (?setInfinite@PagedGeometry@@QAEXXZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::addEntity(class Ogre::Entity *,class Ogre::Vector3 const &,class Ogre::Quaternion const &,class Ogre::Vector3 const &,class Ogre::ColourValue const &)" (?addEntity@BatchPage@@UAEXPAVEntity@Ogre@@ABVVector3@3@ABVQuaternion@3@1ABVColourValue@3@@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: void __thiscall PagedGeometry::setCamera(class Ogre::Camera *)" (?setCamera@PagedGeometry@@QAEXPAVCamera@Ogre@@@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall BatchPage::~BatchPage(void)" (??1BatchPage@@UAE@XZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: __thiscall PagedGeometry::~PagedGeometry(void)" (??1PagedGeometry@@QAE@XZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::init(class PagedGeometry *)" (?init@BatchPage@@UAEXPAVPagedGeometry@@@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: __thiscall PagedGeometry::PagedGeometry(class Ogre::Camera *,float)" (??0PagedGeometry@@QAE@PAVCamera@Ogre@@M@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GeometryPage::clearBoundingBox(void)" (?clearBoundingBox@GeometryPage@@UAEXXZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GeometryPage::addEntityToBoundingBox(class Ogre::Entity *,class Ogre::Vector3 const &,class Ogre::Quaternion const &,class Ogre::Vector3 const &)" (?addEntityToBoundingBox@GeometryPage@@UAEXPAVEntity@Ogre@@ABVVector3@3@ABVQuaternion@3@1@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: virtual class Ogre::AxisAlignedBox const & __thiscall GeometryPage::getBoundingBox(void)" (?getBoundingBox@GeometryPage@@UAEABVAxisAlignedBox@Ogre@@XZ)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: void __thiscall TreeLoader3D::addTree(class Ogre::Entity *,class Ogre::Vector3 const &,class Ogre::Degree,float)" (?addTree@TreeLoader3D@@QAEXPAVEntity@Ogre@@ABVVector3@3@VDegree@3@M@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: __thiscall TreeLoader3D::TreeLoader3D(class PagedGeometry *,struct Ogre::TRect<float> const &)" (??0TreeLoader3D@@QAE@PAVPagedGeometry@@ABU?$TRect@M@Ogre@@@Z)
1>CloudGeneration2.obj : error LNK2001: unresolved external symbol "public: __thiscall GeometryPageManager::GeometryPageManager(class PagedGeometry *)" (??0GeometryPageManager@@QAE@PAVPagedGeometry@@@Z)
1>..\bin\Release\ProjectX.exe : fatal error LNK1120: 30 unresolved externals
1>Build log was saved at "file://c:\Users\Cobra\Desktop\OgreProject\OgreProject\OgreProject\Release\BuildLog.htm"
1>OgreProject - 31 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

JohnJ

08-11-2007 16:32:01

It looks like your project configuration isn't setup so that the Visual C++ compiler knows where to locate PagedGeometry's library files (PagedGeometry\lib\). You'll need to supply this folder and the proper lib file to the compiler.

From tutorial #1:
Next, you need to instruct your compiler that your project will be using PagedGeometry. Simply add PagedGeometry.lib in the “/libâ€

cobra8472

08-11-2007 20:46:42

*blush*


I could've sworn i added the PG libs into the project. Alas, i did not.





Thank you! :D