osceneloader problem [SOLVED]

yuriythebest

17-08-2006 12:55:33

I've copied all the osceneloader & oscenedemo files to my projects folder, though when I try to compile OgreOSMScene I get many errors:


1>OgreOSMScene.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall TiXmlElement::Attribute(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?Attribute@TiXmlElement@@QBEPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
1>OgreOSMScene.obj : error LNK2019: unresolved external symbol "public: class TiXmlElement * __thiscall TiXmlNode::NextSiblingElement(void)const " (?NextSiblingElement@TiXmlNode@@QBEPAVTiXmlElement@@XZ) referenced in function "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
1>OgreOSMScene.obj : error LNK2019: unresolved external symbol "public: class TiXmlElement * __thiscall TiXmlNode::FirstChildElement(void)const " (?FirstChildElement@TiXmlNode@@QBEPAVTiXmlElement@@XZ) referenced in function "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
1>OgreOSMScene.obj : error LNK2019: unresolved external symbol "public: class TiXmlElement * __thiscall TiXmlNode::FirstChildElement(char const *)const " (?FirstChildElement@TiXmlNode@@QBEPAVTiXmlElement@@PBD@Z) referenced in function "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
1>OgreOSMScene.obj : error LNK2019: unresolved external symbol "public: __thiscall TiXmlDocument::TiXmlDocument(void)" (??0TiXmlDocument@@QAE@XZ) referenced in function "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup


gerds

18-08-2006 00:02:16

Looks like you arn't linking against some of the TinyXML files.
Make sure the TinyXML .cpp files are compiled and try again.

yuriythebest

18-08-2006 13:13:17

thanks! I've managed to make it work by doing a clean install.