[GCC-XML]Producing "_0" ids when parsing <string>

Pere Mato Vila Pere.Mato at cern.ch
Tue Jun 17 10:32:36 EDT 2003


Dear gccxml,

  First at all, gccxml is excellent an tool. We are very pleased with it
and has allowed us very easily to generate C++ dictionaries for our
object persistency system. 

  We have a problem when parsing std::basic_string<> class. The latest
version 0.4.2 generates much more elements with id's "_0", which are not
resolved. For example, the return type of basic_string::substr() is not
set correctly to what it is in the header file, which is basic_string.
Is there an explanation for these "_0"? Is any any to avoid them?
To reproduce easily the problem I just parsed <string> with the
following commands. 

  Thanks in advance,

				Pere Mato

> gccxml /usr/local/gcc-alt-3.2/include/c++/3.2/string -fxml=output.xml
> grep returns=\"_0\" output.xml
  <Method id="_2338" name="substr" returns="_0" const="1" context="_0"
location="f32:883">
  <OperatorMethod id="_2521" name="++" returns="_0" context="_0"
location="f39:602">
  <OperatorMethod id="_2523" name="--" returns="_0" context="_0"
location="f39:609">
  <OperatorMethod id="_2526" name="+" returns="_0" const="1"
context="_0" location="f39:622">
  <OperatorMethod id="_2528" name="-" returns="_0" const="1"
context="_0" location="f39:630">

> gccxml --print
GCC-XML version 0.4.2
Configuration settings:
 
GCCXML_CONFIG="/afs/cern.ch/sw/lcg/external/gccxml/0.4.2/rh73_gcc32/shar
e/gccxml-0.4.2/config"
  GCCXML_COMPILER="c++"
  GCCXML_CXXFLAGS="  "
 
GCCXML_EXECUTABLE="/afs/cern.ch/sw/lcg/external/gccxml/0.4.2/rh73_gcc32/
bin/gccxml_cc1plus"
  GCCXML_FLAGS="-quiet -o /dev/null -w -fsyntax-only -nostdinc
-D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -D__GNUC__=3
-D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102
-D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__
-D__gnu_linux__ -D__linux__ -D__unix -D__linux -D__NO_INLINE__
-D__STDC_HOSTED__=1 -D_GNU_SOURCE -Di386 -D__i386 -D__i386__
-D__tune_i686__ -D__tune_pentiumpro__
-I/usr/local/gcc-alt-2.95.2/include
-I/usr/local/gcc-alt-3.2/include/c++/3.2
-I/usr/local/gcc-alt-3.2/include/c++/3.2/i686-pc-linux-gnu
-I/usr/local/gcc-alt-3.2/include/c++/3.2/backward -I/usr/local/include
-I/usr/local/gcc-alt-3.2/include
-I/usr/local/gcc-alt-3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/include
-I/usr/include "
  GCCXML_USER_FLAGS=""
 
GCCXML_ROOT="/afs/cern.ch/sw/lcg/external/gccxml/0.4.2/rh73_gcc32/share/
gccxml-0.4.2"


------------------------------------------------------------
Pere Mato  CERN, EP Division, CH 1211 Geneva 23, Switzerland
           e-mail: Pere.Mato at cern.ch    tel: +41 22 76 78696
           fax:  +41 22 76 79425        gsm: +41 79 20 10855

 



More information about the gccxml mailing list