How to user XercesParser as my XMLSchema
Posted: Sun Mar 11, 2012 18:24
As the subject says.
I'm a beginner of CEGUI. Thank you for any help~
I downloaded CEGUI for 0.7.6. The default XMLSchema of it is ExpatParser.
But when I copy a demo from Internet, it uses XercesParser as XMLSchema.
When I run it, it need CEGUIXercesParser_d.lib. For I haven't compile CEGUIXercesParser, I can't compile the demo.
So I try to compile CEGUIXercesParser. I set up a new project in CEGUI and set the properties like other projects.
When I compile it, such error puzzled me.
Error 3 error C2491: 'CEGUI::XercesParser::d_defaultSchemaResourceGroup' : definition of dllimport static data member not allowed d:\cegui\cegui-0.7.6\cegui\src\xmlparsermodules\xercesparser\ceguixercesparser.cpp 45
Error 5 error C2491: 'CEGUI::XercesParser::s_schemaDefaultResourceGroupProperty' : definition of dllimport static data member not allowed d:\cegui\cegui-0.7.6\cegui\src\xmlparsermodules\xercesparser\ceguixercesparser.cpp 48
16 IntelliSense: cannot define dllimport entity d:\cegui\cegui-0.7.6\cegui\src\xmlparsermodules\xercesparser\ceguixercesparser.cpp 45
17 IntelliSense: cannot define dllimport entity d:\cegui\cegui-0.7.6\cegui\src\xmlparsermodules\xercesparser\ceguixercesparser.cpp 48
How can I compile it .
Or other method by ExpatParser instead of XercesParser method:
CEGUI::XMLParser* parser = CEGUI::System::getSingleton().getXMLParser();
if (parser->isPropertyPresent("SchemaDefaultResourceGroup"))
parser->setProperty("SchemaDefaultResourceGroup", "schemas");
Thanks for any help.
I'm a beginner of CEGUI. Thank you for any help~
I downloaded CEGUI for 0.7.6. The default XMLSchema of it is ExpatParser.
But when I copy a demo from Internet, it uses XercesParser as XMLSchema.
When I run it, it need CEGUIXercesParser_d.lib. For I haven't compile CEGUIXercesParser, I can't compile the demo.
So I try to compile CEGUIXercesParser. I set up a new project in CEGUI and set the properties like other projects.
When I compile it, such error puzzled me.
Error 3 error C2491: 'CEGUI::XercesParser::d_defaultSchemaResourceGroup' : definition of dllimport static data member not allowed d:\cegui\cegui-0.7.6\cegui\src\xmlparsermodules\xercesparser\ceguixercesparser.cpp 45
Error 5 error C2491: 'CEGUI::XercesParser::s_schemaDefaultResourceGroupProperty' : definition of dllimport static data member not allowed d:\cegui\cegui-0.7.6\cegui\src\xmlparsermodules\xercesparser\ceguixercesparser.cpp 48
16 IntelliSense: cannot define dllimport entity d:\cegui\cegui-0.7.6\cegui\src\xmlparsermodules\xercesparser\ceguixercesparser.cpp 45
17 IntelliSense: cannot define dllimport entity d:\cegui\cegui-0.7.6\cegui\src\xmlparsermodules\xercesparser\ceguixercesparser.cpp 48
How can I compile it .
Or other method by ExpatParser instead of XercesParser method:
CEGUI::XMLParser* parser = CEGUI::System::getSingleton().getXMLParser();
if (parser->isPropertyPresent("SchemaDefaultResourceGroup"))
parser->setProperty("SchemaDefaultResourceGroup", "schemas");
Thanks for any help.