`
aigo
  • 浏览: 2537463 次
  • 性别: Icon_minigender_1
  • 来自: 宜昌
社区版块
存档分类
最新评论

连接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工程相同的字符集

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics