[GCC-XML]gccxml and itk
Michael Burns
mb102 at doc.ic.ac.uk
Sun Jul 6 13:25:53 EDT 2003
Hi,
Yes you were correct I was missing a VNL header that needed to be included.
I have written a simple C++ file that includes an ITK header - it compiles
fine with g++, however when I try to compile with gccxml (with the same
flags and includes) I get the following errors:
vnl_vector.h:320: invalid data member initialization
vnl_vector.h:320: (use `=' to initialize static data members)
`vcl_ostream' was not declared in this scope
vnl_vector.h:413: ISO C++ forbids declaration of `operator<<' with no type
vnl_vector.h:414: `int& operator>>(...)' must take exactly two arguments
vnl_vector.h:414: syntax error before `&' token
Thanks
Michael
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: 06 July 2003 17:52
To: Michael Burns
Cc: GCC-XML Discussion
Subject: Re: [GCC-XML]gccxml and itk
> 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
VNL and ITK configure several header files. Make sure you have all the
locations they are placed in your INCLUDE_FLAGS variable. Try writing a
C++ file that includes the header and get it to compile with a g++ command
line first. Once that works, then use the same command line flags for
gccxml.
-Brad
More information about the gccxml
mailing list