Dear c/g++ experts:
at stage of make, while I install/build pathan1.2r2
I meet error about invalid conversion from 'XMLCH*' to 'short int'
and initializing argument 2 of 'someException'
as following on my g++4.5.2 linux2.6.38-10
--------------------------------------------------------------------------
g++ -c -DUNIX -Wall -ftemplate-depth-50 -O2 -I/home/eric/cppcookbook/ch14/download/libpathan-1.2/src/patches/Xerces2_1_0/src -I/usr/src -I/home/eric/cppcookbook/ch14/download/libpathan-1.2/src XPathEvaluatorImpl.cpp -fPIC -DPIC -o /home/eric/cppcookbook/ch14/download/libpathan-1.2/objs/.libs/XPathEvaluatorImpl.o
XPathEvaluatorImpl.cpp: In member function 'virtual XPathExpression* XPathEvaluatorImpl::createExpression(const XMLCh*, const XPathNSResolver*) const':
XPathEvaluatorImpl.cpp:93:190: error: invalid conversion from 'XMLCh*' to 'short int'
XPathEvaluatorImpl.cpp:93:190: error: initializing argument 2 of 'xercesc_3_1::DOMException::DOMException(short int, short int, xercesc_3_1::MemoryManager*)'
make[1]: *** [/home/eric/cppcookbook/ch14/download/libpathan-1.2/objs/XPathEvaluatorImpl.lo] Error 1
make[1]: Leaving directory `/home/eric/cppcookbook/ch14/download/libpathan-1.2/src/interface'
make: *** [subdirs] Error 2
---------------------------------------------------
XPathEvaluatorImpl.cpp
------------------------------------------------------------------
1 2 3
|
throw XERCES_CPP_NAMESPACE_QUALIFIER DOMException(XERCES_CPP_NAMESPACE_QUALIFIER DOMException::NAMESPACE_ERR, XERCES_CPP_NAMESPACE_QUALIFIER // This is line 93
XMLString::transcode(e.getError().c_str()));
|
-------------------------------------------------------------
DOMException.hpp // about its constructor
------------------------
1 2 3 4 5 6 7 8 9 10
|
/**
* Constructor which takes an error code and an optional message code.
*
* @param code The error code which indicates the exception
* @param messageCode The string containing the error message
* @param memoryManager The memory manager used to (de)allocate memory
*/
DOMException(short code,
short messageCode = 0,
MemoryManager* const memoryManager = XMLPlatformUtils::fgMemoryManager);
|
Please help and thanks a lot in advance, Eric