[GCC-XML] newbie questions : gccxml and template / gccxml-compiler options / ...

Brad King brad.king at kitware.com
Wed Mar 16 10:13:40 EST 2005


Nicolas Hognon wrote:
> 1. I've got the following code:
> template <typename T>
> class ClassArray
> {
[snip]
> };
> 
> and I cannot see the ClassArray class in the xml file generated by gcc-xml.
[snip]
> So is there a problem with template or I've missed something ?

I've just added FAQ entry #5 about this here:

http://www.gccxml.org/HTML/FAQ.html

> 2. As I've got a problem with template I am thinking about compiler
> emulation problem so I try to use the gccxml-compiler option to force
> gcc-xml to emulate msvc7.
> So my command line became
> gccxml.exe --gccxml-compiler msvc7 TestBind2.h -fxml=TestBind2.xml
> but I've got the following error
> "Error finding MSVC 7.0 from registry.
> Could not determine GCCXML_FLAGS setting."
> 
> any idea/solution ?

A compiler must be installed on your computer for GCC-XML to be able to 
simulate it's preprocessor.  The reason is that GCC-XML must be able to 
use the compiler's standard library header files.

-Brad



More information about the gccxml mailing list