I'm sorry to say that this didn't seem to make a difference. I still get the same error messages.
Lennart ----- Original Message ----- From: "Michael CATANZARITI" <[EMAIL PROTECTED]> To: "Log4CXX User" <[email protected]> Sent: Tuesday, May 11, 2004 11:09 PM Subject: Re: Problem compiling log4cxx-0.9.7 examples in VC6 > Hello, > > You need to compile STLPort debug libraries : > cd \STLport-4.6\src > nmake -f vc6.mak debug_static > > and you need to add the following macros to static.dsp and trivial.dsp : > _STLP_USE_STATIC_LIB and STLP_USE_DEBUG_LIB > > Micha�l > > Selon Lennart Goedhart <[EMAIL PROTECTED]>: > > > log4cxx 0.9.7 compiles perfectly on both my Windows and Mandrake boxes. > > But when I compile the examples in VC6, I get the following errors: > > ------------------------------------------------------------- > > Linking... > > Creating library ../Bin/Static Debug/trivial.lib and object ../Bin/Static > > Debug/trivial.exp > > LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other > > libs; use /NODEFAULTLIB:library > > trivial.obj : error LNK2001: unresolved external symbol "public: void > > __thiscall log4cxx::Logger::fatal(class _STL::basic_string<char,class > > _STL::char_traits<char>,class _STL::allocator<char> > const &,char const > > *,int)" ([EMAIL PROTECTED]@log4cxx@@QAEX > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@_STL@@[EMAIL PROTECTED]) > > trivial.obj : error LNK2001: unresolved external symbol "public: void > > __thiscall log4cxx::Logger::error(class _STL::basic_string<char,class > > _STL::char_traits<char>,class _STL::allocator<char> > const &,char const > > *,int)" ([EMAIL PROTECTED]@log4cxx@@QAEX > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@_STL@@[EMAIL PROTECTED]) > > trivial.obj : error LNK2001: unresolved external symbol "public: void > > __thiscall log4cxx::Logger::warn(class _STL::basic_string<char,class > > _STL::char_traits<char>,class _STL::allocator<char> > const &,char const > > *,int)" ([EMAIL PROTECTED]@log4cxx@@QAEXAB > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@_STL@@[EMAIL > > PROTECTED]) > > trivial.obj : error LNK2001: unresolved external symbol "public: void > > __thiscall log4cxx::Logger::info(class _STL::basic_string<char,class > > _STL::char_traits<char>,class _STL::allocator<char> > const &,char const > > *,int)" ([EMAIL PROTECTED]@log4cxx@@QAEXAB > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@_STL@@[EMAIL > > PROTECTED]) > > trivial.obj : error LNK2001: unresolved external symbol "public: void > > __thiscall log4cxx::Logger::debug(class _STL::basic_string<char,class > > _STL::char_traits<char>,class _STL::allocator<char> > const &,char const > > *,int)" ([EMAIL PROTECTED]@log4cxx@@QAEX > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@_STL@@[EMAIL PROTECTED]) > > trivial.obj : error LNK2001: unresolved external symbol "public: static void > > __cdecl log4cxx::NDC::push(class _STL::basic_string<char,class > > _STL::char_traits<char>,class _STL::allocator<char> > const &)" > > ([EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED] > > [EMAIL PROTECTED]@_STL@@[EMAIL PROTECTED]@2@@_STL@@@Z) > > ../Bin/Static Debug/trivial.exe : fatal error LNK1120: 6 unresolved > > externals > > Error executing link.exe. > > > > trivial.exe - 7 error(s), 1 warning(s) > > ------------------------------------------------------------- > > I've also added /NODEFAULTLIB:LIBCMT to the project settings, the only > > difference being I don't get the warning. > > I've also downloaded the latest source from CVS with the same result. > > Examples work fine for Mandrake with the same source. > > > > Kind Regards, > > > > Lennart > > ---- > > Althon 1.4 > > Windows 2000 SP4 > > MSVC6 SP6 > > STLport 4.6.2 (with _STLP_NO_OWN_IOSTREAMS defined: ie. running STLport's > > iostreams) > > > > > >
