VC++ 调用log4cplus 在编译器里面会报这个错误:
错误 2 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall log4cplus::Logger::forcedLog(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *,int)const " (__imp_?forcedLog@Logger@log4cplus@@QBEXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBDH@Z),该符号在函数 _main 中被引用 D:\worker\source\CPLUS\testLog\test2\test2.obj test2 错误 2 error
错误 2 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall log4cplus::Logger::forcedLog(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *,int)const " (__imp_?forcedLog@Logger@log4cplus@@QBEXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBDH@Z),该符号在函数 _main 中被引用 D:\worker\source\CPLUS\testLog\test2\test2.obj test2 错误 2 error