编译我的程序我有这个错误:
/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的冲突有什么想法吗?
答案 0 :(得分:2)
您需要定义HAVE_STRCASECMP。这可能应该由config.h中的./configure自动定义 - 你运行./configure吗?