C++でXML(主にxerces)やろう!
■ このスレッドは過去ログ倉庫に格納されています
0332デフォルトの名無しさん
NGNG#include<Xercesc/util/XMLString.hpp>
#include<Xercesc/dom/DOM.hpp>
using namespace std;
XERCES_CPP_NAMESPACE_USE
#define X(x) XMLString::transcode(x)
int main(){
XMLPlatformUtils::Initialize();
{
DOMImplementation *impl= DOMImplementationRegistry::getDOMImplementation(X(""));
DOMDocumentType *doctype = impl->createDocumentType(
X("html"),
X("-//W3C//DTD XHTML 1.1//EN"),
X("http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd") );
DOMDocument *doc = impl->createDocument(NULL,X("html"),doctype);
}
XMLPlatformUtils::Terminate();
return 0;
}
これをVC7でビルドしようとしたんですが
xml error LNK2020: 未解決のトークン (0A000010) __imp_?fgXercescDefaultLocale@XMLUni@xercesc_2_3@@2QBDB
xml error LNK2020: 未解決のトークン (0A000013) __imp_?fgMemoryManager@XMLPlatformUtils@xercesc_2_3@@2PAVMemoryManager@2@A
xml fatal error LNK1120: 外部参照 2 が未解決です。
というエラーが出るんですが、どう対処すればいいのか分からんのです。誰か助けて。Xersescは2.3っす。
■ このスレッドは過去ログ倉庫に格納されています