c++ - Xerces 与 string.h 冲突

标签 c++ xerces

编译我的程序时出现此错误:

/usr/include/xercesc/util/Compilers/GCCDefs.hpp:133:60: error: declaration of ‘int strcasecmp(const char*, const char*)’ has a different exception specifier
/usr/include/string.h:536:12: error: from previous declaration ‘int strcasecmp(const char*, const char*) throw ()’
make: *** [src/test/VFTImageMaterial.o] Error 1

对与 string.h 的冲突有什么想法吗?

最佳答案

您需要定义HAVE_STRCASECMP。这可能应该由 config.h 中的 ./configure 自动定义 - 你运行过 ./configure 吗?

关于c++ - Xerces 与 string.h 冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13517195/

相关文章:

java - 根据 XMLSchema.xsd 验证 XML 架构

C++ "' DOMDocument' : redefinition"Error with Xercesc

c++ - rand() %4000000000UL 只给出小值

c++ - 检查 boost 属性树中的值是树还是终端值

xml - XSD - 任何顺序和计数的元素(由 XERCES 使用 XSD 验证的 XML)

c++ - 一行 Xerces 程序出错

c++ - 使用 xerces 读取 C++ 中的属性名称

c++ - MSVC2013 : How to avoid aborting build process with Pre-build script in error (error MSB3073: :VCEnd"exited with code -1)

c++ - 在指针之间打印文本

c++ - Makefile.am 中的 ifdef