Archived
This forum has been archived. Please start a new discussion on GitHub.
XMLString undeclared

in Help Center
Next problem:
make[2]: Entering directory `/home/fountainb/tools/Ice-1.0.0/src/slice2xsd'
<snip>
c++ -c -I. -I../../include -I/usr/local/include -g -ftemplate-depth-128 -fPIC -Wall Validate.cpp
cc1plus: warning: changing search order for system directory "/usr/local/include"
cc1plus: warning: as it has already been specified as a non-system directory
Validate.cpp: In function `std::string toString(const XMLCh*)':
Validate.cpp:36: `XMLString' undeclared (first use this function)
I have xercesc installed in /usr/local, and I don't see any errors
finding /usr/local/include/xercesc/util/XMLString.hpp (although that
warning about search order seems odd). It looks like XMLString.hpp
hasn't been #included.
Any suggestions?
Bruce Fountain
make[2]: Entering directory `/home/fountainb/tools/Ice-1.0.0/src/slice2xsd'
<snip>
c++ -c -I. -I../../include -I/usr/local/include -g -ftemplate-depth-128 -fPIC -Wall Validate.cpp
cc1plus: warning: changing search order for system directory "/usr/local/include"
cc1plus: warning: as it has already been specified as a non-system directory
Validate.cpp: In function `std::string toString(const XMLCh*)':
Validate.cpp:36: `XMLString' undeclared (first use this function)
I have xercesc installed in /usr/local, and I don't see any errors
finding /usr/local/include/xercesc/util/XMLString.hpp (although that
warning about search order seems odd). It looks like XMLString.hpp
hasn't been #included.
Any suggestions?
Bruce Fountain
0
Comments
-
Re: XMLString undeclared
Hi Bruce!Originally posted by Bruce
Next problem:
make[2]: Entering directory `/home/fountainb/tools/Ice-1.0.0/src/slice2xsd'
<snip>
c++ -c -I. -I../../include -I/usr/local/include -g -ftemplate-depth-128 -fPIC -Wall Validate.cpp
cc1plus: warning: changing search order for system directory "/usr/local/include"
cc1plus: warning: as it has already been specified as a non-system directory
Validate.cpp: In function `std::string toString(const XMLCh*)':
Validate.cpp:36: `XMLString' undeclared (first use this function)
I have xercesc installed in /usr/local, and I don't see any errors
finding /usr/local/include/xercesc/util/XMLString.hpp (although that
warning about search order seems odd). It looks like XMLString.hpp
hasn't been #included.
Any suggestions?
By any chance is that the version you're using?
Also notice that Derek was kind enough to mention what OS and compiler he was using.0 -
Regarding the compiler message about including /usr/local: I think the compiler is simply warning you that you've explicitly specified a "system" directory, i.e., one that the compiler includes by default, and that by specifying it you've effectively moved the order in which it will be used. I recommend not specifying this directive.0
-
Re: Re: XMLString undeclaredOriginally posted by mes
This looks suspiciously similar to the incompatibility Derek reported with Xerces 2.2.0.
Yup. That is exactly the problem. Thanks for that, and thanks to Derek for the
fix, which seems to have sorted that particular problem (onwards and upwards!).
Also notice that Derek was kind enough to mention what OS and compiler he was using.
Sorry about that, I will go and put it in my signature now.
Bruce Fountain0