[GCC-XML] string in gccxml
brad.king at kitware.com
Fri Nov 12 15:32:37 EST 2004
Kedar Joshi wrote:
> I am trying to run gccxml on the following code:
> #include <string>
> using namespace std;
> string echoString(string)
> It compiles with gccxml, but not with gccxml_cc1plus.
gccxml_cc1plus is an internal program invoked by gccxml, so it is not
expected to work when called by hand.
> Gccxml generates a very large file with a lot of unwanted stuff. Is
> there another way to use a C++ string and maybe without generating the
> extra code?
You can use the "-fxml-start" option to specify a declaration. The
subgraph of references starting at this declaration is dumped:
gccxml foo.cxx -fxml=foo.xml -fxml-start=echoString
More information about the gccxml