[GCC-XML] How to specify include path

Brad King brad.king at kitware.com
Mon Dec 12 11:43:01 EST 2005


Siegfried Heintze wrote:
> (1)     How do I use man to view the gccxml.man page?

man -l gccxml.1

> (2)     How do I specify a path name on which to search for additional 
> header files? I’m not getting any XML output – this is probably due to 
> the fact the files specified in the C++ include statements are not in 
> the same directory. I tried –I but that did not help.

Options not listed in the man page are passed by "gccxml" on to the 
internal "gccxml_cc1plus" patched GCC parser program, so using -I should 
work:

gccxml -I/my/includes myprog.cpp -fxml=myprog.xml

-Brad



More information about the gccxml mailing list