On Wed, Dec 13, 2006 at 03:13:05PM -0500, Bob Rossi wrote:
> On Tue, Dec 12, 2006 at 03:05:39PM -0500, Bob Rossi wrote:
> > Hi,
> >
> > OK, I'm planning on using log4cxx, along with apr. Is there anything
> > special I should consider? Can I simply have log4cxx use the libapr that
> > I already build?
>
> I got it to this point,
>
> loglog.cpp: In static member function `static void
> log4cxx::helpers::LogLog::emit(const std::wstring&)':
>
>
> loglog.cpp:89: error: `wcerr' is not a member of `std'
>
> make[1]: *** [loglog.lo] Error 1
>
> make[1]: Leaving directory `/home/bobbybrasko/log4cxx/logging-log4cxx/src'
>
> make: *** [all-recursive] Error 1
>
>
> This is on windows with mingw compiler, using autotools.
Apparently, include/log4cxx/private/log4cxx_private.h has
#define LOG4CXX_HAS_STD_WCOUT 1
and loglog.cpp does
#if LOG4CXX_HAS_WCHAR_T
void LogLog::emit(const std::wstring& msg) {
#if LOG4CXX_HAS_STD_WCOUT
std::wcerr << L"log4cxx: " << msg << std::endl;
#else
LOG4CXX_ENCODE_CHAR(encoded, msg);
std::cerr << "log4cxx: " << encoded << std::endl;
#endif
}
If I comment out the WCOUT macro, I get,
loglog.cpp: In static member function `static void
log4cxx::helpers::LogLog::emit(const std::wstring&)':
loglog.cpp:91: error: no matching function for call to
`log4cxx::helpers::Transcoder::encode(const std::
basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&,
std::string&)'
../include/log4cxx/helpers/transcoder.h:63: note: candidates are: static void
log4cxx::helpers::Transcod
er::encode(const log4cxx::LogString&, std::string&)
../include/log4cxx/helpers/transcoder.h:81: note: static void
log4cxx::helpers::Transcod
er::encode(const log4cxx::LogString&, std::wstring&)
make[1]: *** [loglog.lo] Error 1
make[1]: Leaving directory `/home/bobbybrasko/log4cxx/logging-log4cxx/src'
make: *** [all-recursive] Error 1
Please advise,
Bob Rossi