编译我的程序时出现此错误:
/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/