[GCC-XML] problems parsing standard headers

Dizzy dizzy1 at gmail.com
Sun Apr 8 06:11:19 EDT 2007


I'm currently checking gccxml out,  and i ran into a problem.
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.

this code parses fine:

class World
{
    double a;
    int c;
    public:
        World() : c(0) {}
        World(int c) : c(0) {}
        void add(int _c) { c += _c; }
        void print();
};

when i add "#include <iostream>" it doesn't:

#include <iostream>

class World
{
    double a;
    int c;
    public:
        World() : c(0) {}
        World(int c) : c(0) {}
        void add(int _c) { c += _c; }
        void print();
};

the output:

Error occured during code generation process!
Error:
Error occured while running GCC-XML: In file included from
/usr/include/c++/4.1.1/string:52,
                 from /usr/include/c++/4.1.1/bits/locale_classes.h:47,
                 from /usr/include/c++/4.1.1/bits/ios_base.h:47,
                 from /usr/include/c++/4.1.1/ios:48,
                 from /usr/include/c++/4.1.1/ostream:44,
                 from /usr/include/c++/4.1.1/iostream:44,
                 from /home/michael/Desktop/Programing/Pyste-Test/test.h:34:
/usr/include/c++/4.1.1/bits/basic_string.h: In member function `bool
   std::basic_string<_CharT, _Traits, _Alloc>::_M_disjunct(const _CharT*)
const
   ':
/usr/include/c++/4.1.1/bits/basic_string.h:329: error: syntax error before
`;'
   token
/usr/include/c++/4.1.1/bits/basic_string.h:330: error: syntax error before
`;'
   token

Any  help?

-- 
-Dizzy-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20070408/22b44bc4/attachment-0001.html>


More information about the gccxml mailing list