2008-03-01

log4cxx のコンパイル

Fedora8 でlog4cxx のコンパイルをしたら、
以下の様なエラーがでてコンパイルできませんでした。


../include/log4cxx/xml/domconfigurator.h:211: error: extra qualification 'log4cxx::xml::DOMConfigurator::' on member 'subst'

とらえずコンパイルを通すには、
include/log4cxx/xml/domconfigurator.h:211 の
protected:
String DOMConfigurator::subst(const String& value);

となっている部分を
protected:
String subst(const String& value);
とすればよいようです。

クラスの宣言内で、
スコープの指定が不要になっているみたい。

GCC 4 からなのかな?

No comments: