|
|
Sponsor |
Re: Apache Log4cxx build fails with gcc 2.95.3 under Solaris 8: msg#00003apache.logging.log4cxx.user
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Apache Log4cxx build fails with gcc 2.95.3 under Solaris 8, Ambarish Mitra |
|---|---|
| Next by Date: | Apache Log4cxx build fails with gcc 3.3.2 under Solaris 8, Ambarish Mitra |
| Previous by Thread: | Apache Log4cxx build fails with gcc 2.95.3 under Solaris 8, Ambarish Mitra |
| Next by Thread: | Apache Log4cxx build fails with gcc 3.3.2 under Solaris 8, Ambarish Mitra |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|