티스토리 뷰


<소스 조합>
- xerces-c-2.8.0
- XMLCereal-0.0.5
- basictools-0.1.6
- xercesutils-0.1.6



그저 컴파일하면 아래와 같은 오류 발생


XMLPullParserImpl.cpp:149: error: invalid use of undefined type 'const struct xercesc_2_8::Locator'
XMLParseEvent.h:37: error: forward declaration of 'const struct xercesc_2_8::Locator'
XMLPullParserImpl.cpp:150: error: invalid use of undefined type 'const struct xercesc_2_8::Locator'
XMLParseEvent.h:37: error: forward declaration of 'const struct xercesc_2_8::Locator'
XMLPullParserImpl.cpp: In member function 'virtual void XMLPullParserImpl::startElement(const XMLCh*, const XMLCh*, const XMLCh*, const xercesc_2_8::Attributes&)':
XMLPullParserImpl.cpp:485: error: invalid use of undefined type 'const struct xercesc_2_8::Attributes'
XMLParseEvent.h:36: error: forward declaration of 'const struct xercesc_2_8::Attributes'
XMLPullParserImpl.cpp:489: error: invalid use of undefined type 'const struct xercesc_2_8::Attributes'
XMLParseEvent.h:36: error: forward declaration of 'const struct xercesc_2_8::Attributes'
XMLPullParserImpl.cpp:490: error: invalid use of undefined type 'const struct xercesc_2_8::Attributes'
XMLParseEvent.h:36: error: forward declaration of 'const struct xercesc_2_8::Attributes'
XMLPullParserImpl.cpp:491: error: invalid use of undefined type 'const struct xercesc_2_8::Attributes'
XMLParseEvent.h:36: error: forward declaration of 'const struct xercesc_2_8::Attributes'
XMLPullParserImpl.cpp:492: error: invalid use of undefined type 'const struct xercesc_2_8::Attributes'
XMLParseEvent.h:36: error: forward declaration of 'const struct xercesc_2_8::Attributes'
XMLPullParserImpl.cpp:494: error: invalid use of undefined type 'const struct xercesc_2_8::Attributes'
XMLParseEvent.h:36: error: forward declaration of 'const struct xercesc_2_8::Attributes'
make: *** [XMLPullParserImpl.lo] Error 1




$XMLCEREAL_ROOT/xmlcereal-0.0.5/src/XMLPullParser.h 에서
아래 두 줄 추가하니 컴파일이 되었다.
(Locator와 Attributes는 xercesc 라이브러리에 있는 클래스이다.)


#include "xercesc/sax/Locator.hpp"
#include "xercesc/sax2/Attributes.hpp"




댓글