2012-11-22 37 views
2

編譯我的程序我有這樣的錯誤:Xerces的衝突STRING.H

/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中這種衝突的任何想法?

回答

2

您需要定義HAVE_STRCASECMP。這可能應該由config.h中的./configure自動定義 - 是否運行./configure?

+0

我發現這個問題:我的項目與使用xerces-c-3.1編譯的庫鏈接,但我試圖用不同的版本編譯。 –