求log4cpp或log4cplus 已编译好所有源文件 
在VS2005或2008能正常使用的类库 
请RAR 下发到[email protected]
收到后经测试能用后我把分数都给你(能解决问题的第一人)。
我编译后使用时会出现如下错误 如果能解决同样把分数都给你(能解决问题的第一人)。错误 1 error LNK2019: 无法解析的外部符号 "public: static void __cdecl log4cpp::PropertyConfigurator::configure(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?configure@PropertyConfigurator@log4cpp@@SAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 _main 中被引用 main.obj
错误 2 fatal error LNK1120: 1 个无法解析的外部命令 e:\MyVS2005\C++\C++ STL开发技术导引\12\Chapter12_1\Debug\Chapter12_1.exe 1
本人刚习C++请多 帮忙  谢谢了

解决方案 »

  1.   

    log4cpp已编译好所有源文件 ,在VS2005能正常使用的类库:
    http://www.dreamcubes.com/webdrive/log4cxx_win32/log4cxx-0.10.0-vc6-June2008.rar下载后直接用VC2005打开VC6的工程编译,即可在VC2005下使用。
      

  2.   

    我就写了这一句  log4cxx::Logger::getRootLogger()->info("Hello, log4cxx");
    这会出现:错误 4 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall log4cxx::helpers::ObjectPtrT<class log4cxx::Logger>::~ObjectPtrT<class log4cxx::Logger>(void)" (__imp_??1?$ObjectPtrT@VLogger@log4cxx@@@helpers@log4cxx@@UAE@XZ),该符号在函数 _main 中被引用 main.obj 无法解析的外部符号 与 该符号在函数 _main 中被引用 到底要何解决?
      

  3.   

     log4cpp::SimpleConfigurator::configure("/log4cpp.init");
    就怎么简单的一语句代码为何会出现错误?
    错误 1 error LNK2019: 无法解析的外部符号 "public: static void __cdecl log4cpp::SimpleConfigurator::configure(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?configure@SimpleConfigurator@log4cpp@@SAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 _main 中被引用 main.obj 错误 2 fatal error LNK1120: 1 个无法解析的外部命令 e:\MyVS2005\C++\C++ STL开发技术导引\12\Chapter12_1\Debug\Chapter12_1.exe 1
      

  4.   

    不知道楼主会不会再看到,我折腾了1天,总算找到解决的方法了。
    编译log4cpp和log4cppDLL之前,把NTeventlog删掉。
    然后,把src/FactoryParams.cpp,/src/Localtime.cpp添加到工程里就可以了