Linker error!

™Cadue™

02-02-2007 15:24:57

Hi! i tried to complile a project whit OSM scene library, but i have this linker error:

Linking...
OgreOSMScene.obj : error LNK2019: riferimento al simbolo esterno "public: char const * __thiscall TiXmlElement::Attribute(char const *)const " (?Attribute@TiXmlElement@@QBEPBDPBD@Z) non risolto nella funzione "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
OgreOSMScene.obj : error LNK2019: riferimento al simbolo esterno "public: class TiXmlElement const * __thiscall TiXmlNode::NextSiblingElement(void)const " (?NextSiblingElement@TiXmlNode@@QBEPBVTiXmlElement@@XZ) non risolto nella funzione "public: class TiXmlElement * __thiscall TiXmlNode::NextSiblingElement(void)" (?NextSiblingElement@TiXmlNode@@QAEPAVTiXmlElement@@XZ)
OgreOSMScene.obj : error LNK2019: riferimento al simbolo esterno "public: class TiXmlElement const * __thiscall TiXmlNode::FirstChildElement(void)const " (?FirstChildElement@TiXmlNode@@QBEPBVTiXmlElement@@XZ) non risolto nella funzione "public: class TiXmlElement * __thiscall TiXmlNode::FirstChildElement(void)" (?FirstChildElement@TiXmlNode@@QAEPAVTiXmlElement@@XZ)
OgreOSMScene.obj : error LNK2019: riferimento al simbolo esterno "public: class TiXmlElement const * __thiscall TiXmlNode::FirstChildElement(char const *)const " (?FirstChildElement@TiXmlNode@@QBEPBVTiXmlElement@@PBD@Z) non risolto nella funzione "public: class TiXmlElement * __thiscall TiXmlNode::FirstChildElement(char const *)" (?FirstChildElement@TiXmlNode@@QAEPAVTiXmlElement@@PBD@Z)


Why? Thank! :)

Lioric

02-02-2007 15:54:59

In the User's Guide, there is the "Scene Loader" chapter where you can get the information needed to use the scene loader lib in your applications

You need to include the "TinyXml" source files in your project

See the oScene Loader Demo application