[GCC-XML] running with newer gcc compilers (4.2)

Florian Ludwig dino at phidev.info
Tue Sep 18 16:16:50 EDT 2007


Hi there,

i'm trying to dig into this but i cant even parse a simple "Hello World"
program. The error looks like this:

$ gccxml main.cpp -fxml=test.xml
In file included from /usr/include/c++/4.2/iostream:44,
                 from main.cpp:1:
/usr/include/c++/4.2/x86_64-linux-gnu/bits/c++config.h:149: error:
syntax error 
   before `__attribute__'
In file included from /usr/share/gccxml-0.7/GCC/4.1/bits/c++locale.h:4,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from main.cpp:1:
[.....]


I guess its because of the "new" version of gcc? But I dont really have
a glue. 

$ gccxml --version
GCC-XML version 0.7.0

$ g++ --version
g++ (GCC) 4.2.1 (Debian 4.2.1-5)

Both installed from the debian repositories (sid)

Thank you for any pointer,
Florian Ludwig



More information about the gccxml mailing list