[GCC-XML]gccxml and itk

Michael Burns mb102 at doc.ic.ac.uk
Fri Jul 4 10:25:02 EDT 2003


Hi,

I am new to gccxml and would appreciate some help.
First of all what I am trying to achieve is that I would like to be able to
extract all the public methods from a specified ITK file, e.g.
itkDiscreteGaussianImageFilter.h.

I have downloaded the pre-patched GCC 3.0.4 source and the gccxml-0.4.2
source and built them.

I am using the following command to produce the xml file:

bin/gccxml --gccxml-compiler
g++ --gccxml-cxxflags -ftemplate-depth-50 -D_PTHREADS
itkDiscreteGaussianImageFilter.h -fxml=out.xml $INCLUDE_FLAGS

and get the following errors (among others):
vnl_math.h:45: ISO C++
   forbids declaration of `VNL_DLL_DATA' with no type
vnl_math.h:45: parse
   error before `double'
vnl_math.h:46: duplicate
   member `vnl_math::VNL_DLL_DATA'
vnl_math.h:150: `vcl_exp'
   undeclared (first use this function)
itkDiscreteGaussianImageFilter.txx:29: syntax
   error before `::' token
itkDiscreteGaussianImageFilter.txx:36: `Superclass'
   is not a class or namespace
itkDiscreteGaussianImageFilter.txx:46: `
   TInputImage' fails to be a typedef or built in type
itkDiscreteGaussianImageFilter.txx:153: `os'
   undeclared (first use this function)
vnl_svd.h:60: `int&
   operator<<(...)' must take exactly two arguments

Any hints as to what I am doing wrong would be much appreciated.

Thanks
Michael





More information about the gccxml mailing list