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

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

## 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 "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 on other sites
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 on other sites
Quote:
 Original post by mike25025When 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.htinyxml.cpptinyxml.htinyxmlerror.cpptinyxmlparser.cppxmltest.cpp (you might not need this one)

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

##### Share on other sites
Quote:
 Original post by Andrew RussellThis 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.

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 13
• 10
• 9
• 34
• 16
• ### Forum Statistics

• Total Topics
634125
• Total Posts
3015668
×