cobra8472
13-05-2008 23:32:06
Hi,
Getting this linker error when just putting one line of code that has with PagedGeometry to do in my app (just wanted to test if I had done everything right).
1>main.obj : error LNK2001: unresolved external symbol "public: __thiscall PagedGeometry::PagedGeometry(class Ogre::Camera *,float)" (??0PagedGeometry@@QAE@PAVCamera@Ogre@@M@Z)
1>C:\Users\Cobra\Desktop\Ogre3D Flight Simulator\Ogre3D Flight Simulator\bin\release\Engine2.exe : fatal error LNK1120: 1 unresolved externals
I've double and triple checked so that the PagedGeometry.lib is where it is supposed to be and told the compiler where that directory is.
Not exactly sure which version of Ogre i'm using. 1.4.5 IIRC.
EDIT: It throws more Linker errors as I add more PagedGeometry code
Currently the following code;
PagedGeometry *trees1 = new PagedGeometry(mCamera, 500);
trees1->addDetailLevel<BatchPage>(200,50);
trees1->addDetailLevel<ImpostorPage>(1500,300);
Which throws 22 linker errors :S
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GeometryPage::clearBoundingBox(void)" (?clearBoundingBox@GeometryPage@@UAEXXZ)
1>main.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>main.obj : error LNK2001: unresolved external symbol "public: virtual class Ogre::AxisAlignedBox const & __thiscall GeometryPage::getBoundingBox(void)" (?getBoundingBox@GeometryPage@@UAEABVAxisAlignedBox@Ogre@@XZ)
1>main.obj : error LNK2001: unresolved external symbol "protected: void __thiscall PagedGeometry::_addDetailLevel(class GeometryPageManager *,float,float)" (?_addDetailLevel@PagedGeometry@@IAEXPAVGeometryPageManager@@MM@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: __thiscall PagedGeometry::PagedGeometry(class Ogre::Camera *,float)" (??0PagedGeometry@@QAE@PAVCamera@Ogre@@M@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: __thiscall GeometryPageManager::GeometryPageManager(class PagedGeometry *)" (??0GeometryPageManager@@QAE@PAVPagedGeometry@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::setFade(bool,float,float)" (?setFade@BatchPage@@UAEX_NMM@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::setVisible(bool)" (?setVisible@BatchPage@@UAEX_N@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::removeEntities(void)" (?removeEntities@BatchPage@@UAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::build(void)" (?build@BatchPage@@UAEXXZ)
1>main.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>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::update(void)" (?update@ImpostorPage@@UAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall BatchPage::~BatchPage(void)" (??1BatchPage@@UAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::setFade(bool,float,float)" (?setFade@ImpostorPage@@UAEX_NMM@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::init(class PagedGeometry *)" (?init@BatchPage@@UAEXPAVPagedGeometry@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::setVisible(bool)" (?setVisible@ImpostorPage@@UAEX_N@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::removeEntities(void)" (?removeEntities@ImpostorPage@@UAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::build(void)" (?build@ImpostorPage@@UAEXXZ)
1>main.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>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::setRegion(float,float,float,float)" (?setRegion@ImpostorPage@@UAEXMMMM@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall ImpostorPage::~ImpostorPage(void)" (??1ImpostorPage@@UAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::init(class PagedGeometry *)" (?init@ImpostorPage@@UAEXPAVPagedGeometry@@@Z)
I guess its almost like its not seeing the PagedGeometry lib, but it IS there..
EDIT2: Adding all the .cpp files to my project doesn't work either. Throws about 100 errors.
Most of them ending with "symbol cannot be defined within namespace 'Forests'"
Thanks
Getting this linker error when just putting one line of code that has with PagedGeometry to do in my app (just wanted to test if I had done everything right).
1>main.obj : error LNK2001: unresolved external symbol "public: __thiscall PagedGeometry::PagedGeometry(class Ogre::Camera *,float)" (??0PagedGeometry@@QAE@PAVCamera@Ogre@@M@Z)
1>C:\Users\Cobra\Desktop\Ogre3D Flight Simulator\Ogre3D Flight Simulator\bin\release\Engine2.exe : fatal error LNK1120: 1 unresolved externals
I've double and triple checked so that the PagedGeometry.lib is where it is supposed to be and told the compiler where that directory is.
Not exactly sure which version of Ogre i'm using. 1.4.5 IIRC.
EDIT: It throws more Linker errors as I add more PagedGeometry code
Currently the following code;
PagedGeometry *trees1 = new PagedGeometry(mCamera, 500);
trees1->addDetailLevel<BatchPage>(200,50);
trees1->addDetailLevel<ImpostorPage>(1500,300);
Which throws 22 linker errors :S
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall GeometryPage::clearBoundingBox(void)" (?clearBoundingBox@GeometryPage@@UAEXXZ)
1>main.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>main.obj : error LNK2001: unresolved external symbol "public: virtual class Ogre::AxisAlignedBox const & __thiscall GeometryPage::getBoundingBox(void)" (?getBoundingBox@GeometryPage@@UAEABVAxisAlignedBox@Ogre@@XZ)
1>main.obj : error LNK2001: unresolved external symbol "protected: void __thiscall PagedGeometry::_addDetailLevel(class GeometryPageManager *,float,float)" (?_addDetailLevel@PagedGeometry@@IAEXPAVGeometryPageManager@@MM@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: __thiscall PagedGeometry::PagedGeometry(class Ogre::Camera *,float)" (??0PagedGeometry@@QAE@PAVCamera@Ogre@@M@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: __thiscall GeometryPageManager::GeometryPageManager(class PagedGeometry *)" (??0GeometryPageManager@@QAE@PAVPagedGeometry@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::setFade(bool,float,float)" (?setFade@BatchPage@@UAEX_NMM@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::setVisible(bool)" (?setVisible@BatchPage@@UAEX_N@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::removeEntities(void)" (?removeEntities@BatchPage@@UAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::build(void)" (?build@BatchPage@@UAEXXZ)
1>main.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>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::update(void)" (?update@ImpostorPage@@UAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall BatchPage::~BatchPage(void)" (??1BatchPage@@UAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::setFade(bool,float,float)" (?setFade@ImpostorPage@@UAEX_NMM@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall BatchPage::init(class PagedGeometry *)" (?init@BatchPage@@UAEXPAVPagedGeometry@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::setVisible(bool)" (?setVisible@ImpostorPage@@UAEX_N@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::removeEntities(void)" (?removeEntities@ImpostorPage@@UAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::build(void)" (?build@ImpostorPage@@UAEXXZ)
1>main.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>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::setRegion(float,float,float,float)" (?setRegion@ImpostorPage@@UAEXMMMM@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall ImpostorPage::~ImpostorPage(void)" (??1ImpostorPage@@UAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ImpostorPage::init(class PagedGeometry *)" (?init@ImpostorPage@@UAEXPAVPagedGeometry@@@Z)
I guess its almost like its not seeing the PagedGeometry lib, but it IS there..
EDIT2: Adding all the .cpp files to my project doesn't work either. Throws about 100 errors.
Most of them ending with "symbol cannot be defined within namespace 'Forests'"
Thanks