Sans Pareil Technologies, Inc.

Key To Your Business

Building GCC_XML



GCC_XML is a popular open-source C++ source parser. GCC_XML produces an XML representation of C++ sources that can be used by other tools that need to parse C++ source files. The Reflex framework from CERN is a popular product that uses GCC_XML to parse C++ source files.

The installation instructions from the GCC_XML page are obsolete and can no longer be used to build and install the parser. These instructions may be used to build and install the product on UNIX platforms.

  • Check out the latest sources from the CVS repository as per instructions on the download page.

cvs -d :pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML login
cvs -d :pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML co gccxml


  • Build the included GCC executable first and install it.

cd gccxml
mkdir build-gcc
cd build-gcc
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/gccxml ../GCC
make
pfexec make install


  • Build the GCC_XML parser and install it.

cd ..
mkdir build-gccxml
cd build-gccxml
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/gccxml ../GCC_XML
make
pfexec make install


  • Add the executables to your PATH (optional).

GCCXML_HOME=/usr/local/gccxml
export PATH=$PATH:$GCCXML_HOME/bin