使用log4cplus时遇到的链接错误:无法解析的外部符号 "public: __thiscall log4cplus::RollingFileAppender::RollingFileAppende
来源:互联网 发布:宝利通手机视频软件 编辑:程序博客网 时间:2024/06/05 08:30
<span style="font-size:18px;">1>ImgProcess_server.skeleton.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall log4cplus::RollingFileAppender::RollingFileAppender(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,long,int,bool,bool)" (??0RollingFileAppender@log4cplus@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@JH_N1@Z)1>ImgProcess_server.skeleton.obj : error LNK2001: 无法解析的外部符号 "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)1>ImgProcess_server.skeleton.obj : error LNK2001: 无法解析的外部符号 "void __cdecl log4cplus::detail::macro_forced_log(class log4cplus::Logger const &,int,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,char const *,int,char const *)" (?macro_forced_log@detail@log4cplus@@YAXABVLogger@2@HABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@PBDH2@Z)1>ImgProcess_server.skeleton.obj : error LNK2001: 无法解析的外部符号 "public: static class log4cplus::Logger __cdecl log4cplus::Logger::getInstance(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)" (?getInstance@Logger@log4cplus@@SA?AV12@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z)1>ImgProcess_server.skeleton.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall log4cplus::NDCContextCreator::NDCContextCreator(wchar_t const *)" (??0NDCContextCreator@log4cplus@@QAE@PB_W@Z)1>F:\CBIR0706\Server_LAC_Release\Release\server.exe : fatal error LNK1120: 5 个无法解析的外部命令</span>
分析:这是由于当前工程项目的“字符集”设置与log4plus所用的“字符集”不一致所导致的,log4cplus是使用多字节字符集,而当前工程是使用 Unicode 字符集
解决方案:打开项目属性页-常规-字符集,改成“未设置”
0 0
- 使用log4cplus时遇到的链接错误:无法解析的外部符号 "public: __thiscall log4cplus::RollingFileAppender::RollingFileAppende
- error LNK2019: 无法解析的外部符号 public: __thiscall
- Error: LNK2019 无法解析的外部符号 public __thiscall
- error LNK2019: 无法解析的外部符号 "public: void __thiscall
- error LNK2019: 无法解析的外部符号 "public: int __thiscall
- 无法解析的外部符号 "public: void __thiscall CAboutDlg
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- 写Filter中编译出现的错误,无法解析的外部符号 "public: __thiscall CTransformFilter::CTransformFilter
- 错误4error LNK2019: 无法解析的外部符号 "public: __thiscall CRobotProvider::~CRobotProvider(void)" (??1CRobotP
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- Xcode 配置文件 xcconfig 使用实践
- html学习第一天
- 开通博客第一天
- java基础之集合
- 什么是事务(四个特性 )
- 使用log4cplus时遇到的链接错误:无法解析的外部符号 "public: __thiscall log4cplus::RollingFileAppender::RollingFileAppende
- ReportBuilder 中的参数设置
- 实现对象的复用——享元模式(Flyweight Pattern)
- maven pom聚合与继承
- C++ 对进程各种操作函数
- 记录JPA使用情况
- php缓存生成静态页
- TextView属性
- LINQ动态条件查询(一)