Macos 未能在Mac OS X Yosemite 10.10.3上构建Log4cxx-0.10.0
我试图在MacOSXYosemite(Xcode 6.3.1)上构建Log4cxx-0.10.0 我跑 成功了,但是当我跑的时候Macos 未能在Mac OS X Yosemite 10.10.3上构建Log4cxx-0.10.0,macos,log4cxx,Macos,Log4cxx,我试图在MacOSXYosemite(Xcode 6.3.1)上构建Log4cxx-0.10.0 我跑 成功了,但是当我跑的时候 make 要安装Log4cxx,我遇到了以下错误: ../../../src/main/include/log4cxx/helpers/simpledateformat.h:56:73: error: reference to 'locale' is ambiguous ...SimpleDateFormat(const LogString&
make
要安装Log4cxx,我遇到了以下错误:
../../../src/main/include/log4cxx/helpers/simpledateformat.h:56:73: error:
reference to 'locale' is ambiguous
...SimpleDateFormat(const LogString& pattern, const std::locale* locale);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:55:24: note:
candidate found by name lookup is 'std::__1::locale'
class _LIBCPP_TYPE_VIS locale
^
../../../src/main/include/log4cxx/helpers/simpledateformat.h:32:23: note:
candidate found by name lookup is 'std::locale'
namespace std { class locale; }
^
../../../src/main/include/log4cxx/helpers/simpledateformat.h:82:89: error:
reference to 'locale' is ambiguous
...addToken(const logchar spec, const int repeat, const std::locale* locale...
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:55:24: note:
candidate found by name lookup is 'std::__1::locale'
class _LIBCPP_TYPE_VIS locale
^
../../../src/main/include/log4cxx/helpers/simpledateformat.h:32:23: note:
candidate found by name lookup is 'std::locale'
namespace std { class locale; }
^
../../../src/main/include/log4cxx/helpers/simpledateformat.h:83:78: error:
reference to 'locale' is ambiguous
...static void parsePattern(const LogString& spec, const std::locale* local...
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:55:24: note:
candidate found by name lookup is 'std::__1::locale'
class _LIBCPP_TYPE_VIS locale
^
../../../src/main/include/log4cxx/helpers/simpledateformat.h:32:23: note:
candidate found by name lookup is 'std::locale'
namespace std { class locale; }
^
3 errors generated.
make[3]: *** [class.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
有人知道我能做些什么让它工作吗?
谢谢 在SimpleDataFormat.h中注释区域设置类定义,并在同一文件中添加
#include
#include < locale >
//namespace std { class locale; }
#包括
//命名空间std{class locale;}
不确定这是否有帮助,但您可以查看brew并从那里安装log4cxx。或者,如果您喜欢手动构建,请根据应用补丁。@baf非常感谢!我修改了源代码作为列表,它的工作!
#include < locale >
//namespace std { class locale; }