C++ Log4cxx<&书信电报;操作员导致访问冲突

C++ Log4cxx<&书信电报;操作员导致访问冲突,c++,visual-studio,log4cxx,C++,Visual Studio,Log4cxx,我在VS2008中有一个dll项目,它导致我的应用程序抛出访问冲突。我调试并发现在Log4cxx行中,Log4cxx\u DEBUG(logger,myMessagestd已经为double加载了一个重载,你不能再引入另一个。你能做的就是在一个类中重载它。好的。这是一项艰巨的任务!!但是我成功地用VS2008重新构建了Log4cxx二进制文件,现在我可以在不做任何更改的情况下运行代码了。谢谢! namespace log4cxx { namespace helpers { ostream

我在VS2008中有一个dll项目,它导致我的应用程序抛出访问冲突。我调试并发现在Log4cxx行中,
Log4cxx\u DEBUG(logger,myMessagestd已经为double加载了一个重载,你不能再引入另一个。你能做的就是在一个类中重载它。

好的。这是一项艰巨的任务!!但是我成功地用VS2008重新构建了Log4cxx二进制文件,现在我可以在不做任何更改的情况下运行代码了。谢谢!
namespace log4cxx { namespace helpers {
    ostream& operator<<(ostream& os, const double& a);
} }
more than one operator "<<" matches these operands:
            function "log4cxx::helpers::operator<<(std::ostream &os, const double &a)"
            function "std::basic_ostream<_Elem, _Traits>::operator<<(double _Val) [with _Elem=char, _Traits=std::char_traits<char>]"
            operand types are: std::basic_ostream<char, std::char_traits<char>> << const double
namespace std {
   ostream& operator<<(ostream& os, const double& a);
}
more than one operator "<<" matches these operands:
            function "std::operator<<(std::ostream &os, const double &a)"
            function "std::basic_ostream<_Elem, _Traits>::operator<<(double _Val) [with _Elem=char, _Traits=std::char_traits<char>]"
            operand types are: std::basic_ostream<char, std::char_traits<char>> << const double
std::ostringstream os;
    os << "myMessage here << doubleX<< ", valuey=" << doubleY;
    LOG4CXX_DEBUG(logger, os.str());