连接log4cplus错误:LNK2001: unresolved external symbol class std::basic_ostringstream

错误:

Error1error LNK2001: unresolved external symbol "class std::basic_ostringstream<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > & __cdecl log4cplus::detail::get_macro_body_oss(void)" (?get_macro_body_oss@detail@log4cplus@@YAAAV?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@XZ)

原因:

自己工程的字符集格式与log4cplus的字符集格式不一样

解决办法:

把自己工程的字符集格式设置为”不设置“或者设为与log4cplus工程相同的字符集

猜你喜欢

转载自aigo.iteye.com/blog/1923034