Hello, I download the Log4Cxx 0.9.5 source and built the DLL and static library successfully.
But when I tried to build the "trival.cpp", it failed. And display the following errors: Deleting intermediate files and output files for project 'trivial - Win32 Debug'. --------------------Configuration: trivial - Win32 Debug-------------------- Compiling... trivial.cpp Linking... trivial.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall log4cxx::Logger::fatal(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *,int)" (__imp_? [EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@V?$alloca [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]) trivial.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall log4cxx::Logger::error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *,int)" (__imp_? [EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@V?$alloca [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]) trivial.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall log4cxx::Logger::warn(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *,int)" (__imp_?w [EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@V?$allocato [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]) trivial.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall log4cxx::Logger::info(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *,int)" (__imp_?i [EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@V?$allocato [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]) trivial.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall log4cxx::Logger::debug(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *,int)" (__imp_? [EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@V?$alloca [EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]) trivial.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl log4cxx::NDC::push(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([EMAIL PROTECTED]@log4cxx@ @[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@@Z) Debug/trivial.exe : fatal error LNK1120: 6 unresolved externals Error executing link.exe. trivial.exe - 7 error(s), 0 warning(s) Is there any specific setting in VC that I did not make? Eric ========================== If you know what you are doing, it is not called RESEARCH! ==========================
