Jump to content
  • Advertisement
Sign in to follow this  
Xiachunyi

Dev-C++: TinyXML Linking Error [solved]

This topic is 4852 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I recently tried, last night, to compile TinyXML's source files into my project but I kept getting a linker error. The linker error is: [Linker error] undefined reference to `TiXmlString::append(char const*, unsigned int)' My "include" list is as shown:
//~~~~~Header Files
#include <windows.h>        //Header File for Standard Windows Functions
#include <stdio.h>          //Header File for I/O
#include <stdlib.h>         //Header File for Standard Library
#include <commctrl.h>       //Header File for Common Controls
#include <math.h>           //Header File for Math Functions
#include <time.h>           //Header File for Time Functions
#include <gl\gl.h>          //Header File for OpenGL
#include <gl\glu.h>         //Header File for Glu32
#include <gl\wglext.h>	    //Header File for WGL extensions
#include <gl\glext.h>	    //Header File for GL extensions
#include <olectl.h>         //Header File for OLE Control
#include <fmod.h>           //Header File for Fmod
#include "Model.h"          //Header File for Model Loading
#include "tinyxml.h"
#include "tinystr.h"
I am utilizing Dev-C++ version 4.9.9.2b. What would have to add to my project to resolve this error? Thank you. [Edited by - Xiachunyi on August 9, 2005 9:41:58 PM]

Share this post


Link to post
Share on other sites
Advertisement
When I used TinyXML I just added every file into my project. The list of files you should have are:

tinystr.cpp (I think this is what you are missing)
tinystr.h
tinyxml.cpp
tinyxml.h
tinyxmlerror.cpp
tinyxmlparser.cpp
xmltest.cpp (you might not need this one)

Share this post


Link to post
Share on other sites
Quote:
Original post by mike25025
When I used TinyXML I just added every file into my project. The list of files you should have are:

tinystr.cpp (I think this is what you are missing)
tinystr.h
tinyxml.cpp
tinyxml.h
tinyxmlerror.cpp
tinyxmlparser.cpp
xmltest.cpp (you might not need this one)


This is the correct solution. And you're right - you don't need xmltest.cpp.

Share this post


Link to post
Share on other sites
Quote:
Original post by Andrew Russell
This is the correct solution. And you're right - you don't need xmltest.cpp.


I added the "tinystr.cpp" to my project and it worked like a charm. I contacted mike25025 in a PM to thank him since the thread ended up being on the 2nd page and I did not want to bump it up.

It is my fault though for not editing the title to "solved". Thank you though - I do not have to use the Window's INI files anymore.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!