On Tue, Sep 05, 2006 at 02:26:55PM +0200, Peter Kümmel wrote:

> Georg Baum wrote:
[...]
> > std::wcerr should be declared in iostream. If gcc on cygwin does not have it
> > then it is not standard conforming.

Possibly. The wide stream versions are #ifdef'd out in iostream:

#ifdef _GLIBCXX_USE_WCHAR_T
  extern wistream wcin;         ///< Linked to standard input
  extern wostream wcout;        ///< Linked to standard output
  extern wostream wcerr;        ///< Linked to standard error (unbuffered)
  extern wostream wclog;        ///< Linked to standard error (buffered)
#endif

and in .../include/c++/i686-pc-cygwin/bits/c++config.h
I see:

// Define if code specialized for wchar_t should be used.
/* #undef _GLIBCXX_USE_WCHAR_T */

Of course if I try to compile using -D_GLIBCXX_USE_WCHAR_T I get tons
of other errors...

> > Does it work if you comment tyhe wcerr calls?
> 
> Yes, but stream out is empty, and I must use the boost type:
> 
> [EMAIL PROTECTED] /cygdrive/c/
> $ g++ stream2.cpp -ostream  -liconv
> 
> [EMAIL PROTECTED] /cygdrive/c/
> $ ./stream
> test:
> 20 e4 f6 fc

I get:

$ ./stream2
test:
20 e4 f6 fc
20 c4 d6 dc

and an empty stream.out, too.
(Good bye LyX on cygwin?)

-- 
Enrico

Reply via email to