TORCS and TinyXML - doesn't work

Torben Becker <[email protected]>
Newsgroups gmane.games.torcs.general
Message-ID <[email protected]>
Hi,

i want to use TinyXML in TORCS to save measure data.
I use TORCS 1.3.1 and TinyXML 2.6.1 and i write in my robots .cpp file 
the line
#include "xml/tinyxml.h"

but, when i compile the code, i get these errors:

/usr/bin/install -c -m 644 tobe.xml 
/usr/local/share/games/torcs/drivers/tobe/tobe.xml
g++ -I/usr/src/torcs/torcs-1.3.1/export/include 
-I/usr/src/torcs/torcs-1.3.1 -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 
-DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -Wall -fPIC -fno-strict-aliasing 
-O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -D_SVID_SOURCE -D_BSD_SOURCE 
-DSHM -DHAVE_CONFIG_H -c tobe.cpp
In file included from tobe.cpp:36:
xml/tinyxml.h:803: error: expected ‘,’ or ‘...’ before ‘.’ token
xml/tinyxml.h:835: error: expected ‘,’ or ‘...’ before ‘.’ token
xml/tinyxml.h: In constructor ‘TiXmlAttribute::TiXmlAttribute(const char*)’:
xml/tinyxml.h:805: error: request for member ‘name’ in ‘info’, which is 
of non-class type ‘const char*’
xml/tinyxml.h:806: error: ‘_value’ was not declared in this scope
xml/tinyxml.h: In member function ‘void TiXmlAttribute::SetName(const 
char*)’:
xml/tinyxml.h:835: error: request for member ‘name’ in ‘info’, which is 
of non-class type ‘const char*’
xml/tinyxml.h: At global scope:
xml/tinyxml.h:917: error: expected ‘,’ or ‘...’ before ‘.’ token
xml/tinyxml.h:918: error: expected ‘,’ or ‘...’ before ‘.’ token
tobe.cpp: In function ‘int tobe(tModInfo*)’:
tobe.cpp:74: warning: deprecated conversion from string constant to ‘char*’
tobe.cpp:75: warning: deprecated conversion from string constant to ‘char*’
make: *** [tobe.o] Fehler 1


I didn't found these errors on google.
Can anyone help me?

Thanks!

Best regards,
Torben

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Torcs-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/torcs-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.