我在ubuntu 14.04上安装了xerces-c 3.1.1 .IDE - 代码块
遵循http://www.yolinux.com/TUTORIALS/XML-Xerces-C.html的说明 如何编译这个parser.cpp文件。当我在代码块上编译解析器代码时,我得到了一堆错误
还试图用g ++手动编译仍然是相同的错误
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o||In function `_start':|
(.text+0x20)||undefined reference to `main'|
/home/san/Documents/Projects/Entity Resolution/Parsers/Xerces tester/parser.o||In function `GetConfig::GetConfig()':|
parser.cpp|| undeenter code herefined reference to `xercesc_3_1::XMLUni::fgXercescDefaultLocale'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_3_1::PanicHandler*, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::transcode(char const*, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::transcode(char const*, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::transcode(char const*, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::transcode(char const*, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMemory::operator new(unsigned long)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XercesDOMParser::XercesDOMParser(xercesc_3_1::XMLValidator*, xercesc_3_1::MemoryManager*, xercesc_3_1::XMLGrammarPool*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::transcode(unsigned short const*, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMemory::operator delete(void*)'|
/home/san/Documents/Projects/Entity Resolution/Parsers/Xerces tester/parser.o||In function `GetConfig::~GetConfig()':|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::release(unsigned short**, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::release(unsigned short**, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::release(unsigned short**, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::release(unsigned short**, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::Terminate()'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::transcode(unsigned short const*, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)'|
/home/san/Documents/Projects/Entity Resolution/Parsers/Xerces tester/parser.o||In function `GetConfig::readConfigFile(std::string&)':|
parser.cpp|| undefined reference to `xercesc_3_1::AbstractDOMParser::setValidationScheme(xercesc_3_1::AbstractDOMParser::ValSchemes)'|
parser.cpp|| undefined reference to `xercesc_3_1::AbstractDOMParser::setDoNamespaces(bool)'|
parser.cpp|| undefined reference to `xercesc_3_1::AbstractDOMParser::setDoSchema(bool)'|
parser.cpp|| undefined reference to `xercesc_3_1::AbstractDOMParser::setLoadExternalDTD(bool)'|
parser.cpp|| undefined reference to `xercesc_3_1::AbstractDOMParser::parse(char const*)'|
parser.cpp|| undefined reference to `xercesc_3_1::AbstractDOMParser::getDocument()'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::transcode(unsigned short const*, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::transcode(unsigned short const*, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::transcode(unsigned short const*, xercesc_3_1::MemoryManager*)'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'|
parser.cpp|| undefined reference to `xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|