I'm currently checking gccxml out, and i ran into a problem.<br>When I try to parse header files that do not contain any standard includes it parses the code just fine, but when i just add an include such as iostream, or string, without even using it, it complains.
<br><br>this code parses fine:<br><br>class World<br>{<br> double a;<br> int c;<br> public:<br> World() : c(0) {}<br> World(int c) : c(0) {}<br> void add(int _c) { c += _c; }<br> void print();
<br>};<br><br>when i add "#include <iostream>" it doesn't:<br><br clear="all">#include <iostream><br><br>class World<br>{<br> double a;<br> int c;<br> public:<br> World() : c(0) {}
<br> World(int c) : c(0) {}<br> void add(int _c) { c += _c; }<br> void print();<br>};<br><br>the output:<br><br>Error occured during code generation process!<br>Error:<br>Error occured while running GCC-XML: In file included from /usr/include/c++/4.1.1/string:52,
<br> from /usr/include/c++/4.1.1/bits/locale_classes.h:47,<br> from /usr/include/c++/4.1.1/bits/ios_base.h:47,<br> from /usr/include/c++/4.1.1/ios:48,<br> from /usr/include/c++/4.1.1/ostream:44,
<br> from /usr/include/c++/4.1.1/iostream:44,<br> from /home/michael/Desktop/Programing/Pyste-Test/test.h:34:<br>/usr/include/c++/4.1.1/bits/basic_string.h: In member function `bool <br> std::basic_string<_CharT, _Traits, _Alloc>::_M_disjunct(const _CharT*) const
<br> ':<br>/usr/include/c++/4.1.1/bits/basic_string.h:329: error: syntax error before `;' <br> token<br>/usr/include/c++/4.1.1/bits/basic_string.h:330: error: syntax error before `;' <br> token<br><br>Any help?
<br><br>-- <br>-Dizzy-