Hi, I'm starting with c++ and with tinyxml. Now I'm obtainning an errors that I don't know how to solve. I've added the .h files to the project (following this link). The tinyxml functions are accepted on my main () [I'm practising how to use it] . I've made a little program that receives a xml and should show me it's structure, but when I'm going to build the project I'm obtainning a lot of errors and all are similars, refereing to 'tag', 'params' and redefinitions. I don't know why appear and how could I solve it. I don't if I've made something bad (has a big probability) or are (as seems) errors code. I hope you could help me.
C:\MinGW\lib\gcc\mingw32\4.5.2\include\c++\profile\tinybind\/tinybind.h:235:25: error: there are no arguments to 'tag' that depend on a template parameter, so a declaration of 'tag' must be available
C:\MinGW\lib\gcc\mingw32\4.5.2\include\c++\profile\tinybind\/tinybind.h:236:51: error: there are no arguments to 'params' that depend on a template parameter, so a declaration of 'params' must be available
C:\MinGW\lib\gcc\mingw32\4.5.2\include\c++\profile\tinybind\tinybind.cpp:100:1: error: specializing member '::ConvertFromString<const char*>' requires 'template<>' syntax
C:\MinGW\lib\gcc\mingw32\4.5.2\include\c++\profile\tinybind\/tinybind.cpp:56:1: error: redefinition of 'const char* ConvertToString(const double&)'
C:\MinGW\lib\gcc\mingw32\4.5.2\include\c++\profile\tinybind\tinybind.cpp:56:1: error: 'const char* ConvertToString(const double&)' previously defined here
Log in to post a comment.