logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Apache Log4cxx build fails with gcc 2.95.3 under Solaris 8: msg#00003

apache.logging.log4cxx.user

Subject: Re: Apache Log4cxx build fails with gcc 2.95.3 under Solaris 8

std::wcout is the wchar_t equivalent of std::cout, a STL stream interface to the standard console. On other gccs, the definition for std::wcout is in <iostream>. Either the definition of std::wcout is located in a different header or may not be defined for the platform. Either of which is surprising. Do a search on your standard include files for wcout and see if you come up with any hits. As a work-around until we get a better resolution, you can either remove ConsoleAppender from your build or make the following changes which will use std::cout. This is not a good solution since it will cause characters that can not be converted to the current code page to be displayed as a replacement character.

void ConsoleAppender::subAppend(const LogString& msg, Pool& p) {
- std::wstring wmsg;
+ std::string wmsg;
log4cxx::helpers::Transcoder::encode(msg, wmsg);
if (useErr) {
- std::wcerr << wmsg << std::flush;
+ std::cerr << wmsg << std::flush;
} else {
- std::wcout << wmsg << std::flush;
+ std::cout << wmsg << std::flush;
}
}


On Jan 31, 2005, at 11:59 PM, Ambarish Mitra wrote:

I have now upgraded gcc, and now I am using gcc 3.3.2

Those errors (reported in the earlier post) dated Jan 31, 2005 have gone,
but now, some other errors are coming:

source='consoleappender.cpp' object='consoleappender.lo' libtool=yes \
DEPDIR=.deps depmode=gcc /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I.
-I../include/log4cxx -I../include -D_REENTRANT -g -O2 -c -o
consoleappender.lo consoleappender.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -D_REENTRANT
-g -O2 -c consoleappender.cpp -Wp,-MD,.deps/consoleappender.TPlo -fPIC
-DPIC -o .libs/consoleappender.o
consoleappender.cpp: In constructor `
log4cxx::ConsoleAppender::ConsoleAppender()':
consoleappender.cpp:33: error: `wcout' undeclared in namespace `std'
....

Has anybody faced any similar errors? Or anyone has any idea what can be
wrong?

-Ambarish.
<winmail.dat>




<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo