[GCC-XML]GCC_XML tag?
Eduardo Suárez
eduardo at dsc.ulpgc.es
Mon Mar 18 16:31:35 EST 2002
Hi
I am new to GCC_XML and i need it to compile with itk. GCC_XML
compilation process has been ok, but i get something extrange afterward.
I have tried to run kitware's example, but my compiler doesn't recognize
the '-quiet' option, and the output i get is different from the kitware
one.
My problem is that compiling itk, parser does not recognize <GCC_XML>
tag.
I have attached the tty outputs at the end of the mail.
Thanks in advance
-Eduardo
**********************************************************
ITK compilation
***************
/mnt/local/home/eduardo/ITK/Cable-0_02/Executables/cable
/mnt/local/home/eduardo/ITK/Insight/Testing/Code/Common/Tcl/ITKCommonTestTcl1_itkAcosImageAdaptoritkImage_float_2_double_config_tcl.xml
-tcl
/mnt/local/home/eduardo/ITK/Insight/Testing/Code/Common/Tcl/ITKCommonTestTcl1_itkAcosImageAdaptoritkImage_float_2_double_tcl.cxx
Parsing configuration file
"/mnt/local/home/eduardo/ITK/Insight/Testing/Code/Common/Tcl/ITKCommonTestTcl1_itkAcosImageAdaptoritkImage_float_2_double_config_tcl.xml"
...
Parsing XML source file
"/mnt/local/home/eduardo/ITK/Insight/Testing/Code/Common/Tcl/ITKCommonTestTcl1_itkAcosImageAdaptoritkImage_float_2_double_cxx.xml"
...
source: Error at line 2, column 0
Unknown element tag: GCC_XML
source: Error at line 36, column 6
Missing element attribute: name
source: Error at line 38, column 4
Missing element attribute: abstract
source: Error at line 41, column 6
Expected "Any Class" as immediate enclosing element, but got "Namespace"
source: Error at line 42, column 8
Expected "Any Function" as immediate enclosing element, but got
"Namespace"
Caught exception in Parser::EndElement():
Global namespace popped from element stack!
make[7]: ***
[/mnt/local/home/eduardo/ITK/Insight/Testing/Code/Common/Tcl/ITKCommonTestTcl1_itkAcosImageAdaptoritkImage_float_2_double_tcl.cxx]
Violación de segmento (core dumped) [Núcleo vaciado a un archivo]
make[6]: *** [default_target] Error 2
make[5]: *** [default_target_Common] Error 2
...
GCC running
***********
$ gcc -quiet -nostdinc -o /dev/null -fsyntax-only example1.cxx
-fxml=example1.xml
gcc: unrecognized option `-quiet'
$ gcc -nostdinc -o /dev/null -fsyntax-only example1.cxx
-fxml=example1.xml
$ diff example1.xml example1.xml_kitware
2d1
< <GCC_XML>
4c3,9
< <Function name="main" returns="t0" location="f0:8">
---
> <Function name="main">
> <Location file="example1.cxx" line="8"/>
> <Returns>
> <NamedType>
> <QualifiedName name="int"/>
> </NamedType>
> </Returns>
6,8c11,27
< <Function name="a_function" returns="t0" location="f0:4">
.
.
.
**************************************************
More information about the gccxml
mailing list