You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Markus Jais <da...@gmx.net> on 2004/04/29 14:23:40 UTC

include warnings with xerces

hi
I have xerces 2.2 and when compiling with g++ 3.3

I get a lot of warnings like this.

-----------------

In file included from /usr/local/include/xercesc/util/NameIdPool.hpp:311,
                 from
/usr/local/include/xercesc/internal/XMLScanner.hpp:254,
                 from
/usr/local/include/xercesc/internal/VecAttributesImpl.hpp:92,
                 from
/usr/local/include/xercesc/parsers/SAX2XMLReaderImpl.hpp:200,
                 from
/usr/local/include/xercesc/sax2/XMLReaderFactory.hpp:85,
                 from AccessConfig.hh:3,
                 from AccessConfig.cc:4:
/usr/local/include/xercesc/util/NameIdPool.c: In method
`NameIdPool<TElem>::NameIdPool(unsigned int, unsigned int = 128)':
/usr/local/include/xercesc/util/NameIdPool.c:135: warning: declaration of
`index' shadows global declaration
In file included from /usr/local/include/xercesc/util/RefStackOf.hpp:205,
                 from /usr/local/include/xercesc/internal/ReaderMgr.hpp:142,
                 from
/usr/local/include/xercesc/internal/XMLScanner.hpp:256,
                 from
/usr/local/include/xercesc/internal/VecAttributesImpl.hpp:92,
                 from
/usr/local/include/xercesc/parsers/SAX2XMLReaderImpl.hpp:200,
                 from
/usr/local/include/xercesc/sax2/XMLReaderFactory.hpp:85,
                 from AccessConfig.hh:3,
                 from AccessConfig.cc:4:
/usr/local/include/xercesc/util/RefStackOf.c: In method `const TElem *
RefStackOf<TElem>::elementAt(unsigned int) const':
/usr/local/include/xercesc/util/RefStackOf.c:111: warning: declaration of
`index' shadows global declaration
In file included from /usr/local/include/xercesc/util/ValueVectorOf.hpp:216,
                 from /usr/local/include/xercesc/util/ValueStackOf.hpp:93,
                 from
/usr/local/include/xercesc/parsers/SAX2XMLReaderImpl.hpp:203,
                 from
/usr/local/include/xercesc/sax2/XMLReaderFactory.hpp:85,
                 from AccessConfig.hh:3,
                 from AccessConfig.cc:4:
/usr/local/include/xercesc/util/ValueVectorOf.c: In method
`ValueVectorOf<TElem>::ValueVectorOf(const ValueVectorOf<TElem> &)':
/usr/local/include/xercesc/util/ValueVectorOf.c:118: warning: declaration of
`index' shadows global declaration
/usr/local/include/xercesc/util/ValueVectorOf.c: In method `class
ValueVectorOf<TElem> & ValueVectorOf<TElem>::operator =(const
ValueVectorOf<TElem> &)':
/usr/local/include/xercesc/util/ValueVectorOf.c:147: warning: declaration of
`index' shadows global declaration
/usr/local/include/xercesc/util/ValueVectorOf.c: In method `void
ValueVectorOf<TElem>::insertElementAt(const TElem &, unsigned int)':
/usr/local/include/xercesc/util/ValueVectorOf.c:185: warning: declaration of
`index' shadows global declaration

-------------

a colleague told me this is because the C header file string (that is
<cstring> in C++) is the reason.
and the solution would be to include the xerces stuff first.
but maybe the xerces itself uses <cstring>


any ideas how to get rid of this warnings ??
thanks


markus







-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgeb�hr: http://www.gmx.net/dsl


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org