【问题标题】:Xerces conflicts string.hXerces 冲突 string.h
【发布时间】:2012-11-22 16:58:51
【问题描述】:

编译我的程序我有这个错误:

/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 的冲突吗?

【问题讨论】:

    标签: c++ xerces


    【解决方案1】:

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

    【讨论】:

    • 我发现了问题:我的项目与使用 xerces-c-3.1 编译的库链接,但我试图使用不同的版本进行编译。
    猜你喜欢
    • 2015-04-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-22
    • 2011-11-22
    • 2016-02-25
    相关资源
    最近更新 更多