This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
[gcc-help] std::wcout fails to compile
- From: "Lourens Janse van Rensburg" <Lourens dot jansevanRensburg at intec dot co dot za>
- To: <gcc-help at gcc dot gnu dot org>
- Cc: <aleethorp at hotmail dot com>
- Date: Tue, 14 Dec 2004 09:39:57 +0200
- Subject: [gcc-help] std::wcout fails to compile
G'day all!
THE CODE:
---------
#include <iostream>
int main()
{
std::wcout << std::endl;
}
THE ERROR:
----------
$ g++ a.cpp
a.cpp: In function `int main()':
a.cpp:6: error: `wcout' undeclared in namespace `std'
THE COMPILERS:
-------------
gcc 3.2.3 or 3.3.3 on cygwin and several unix platforms
THE QUESTION:
-------------
This compiles with other unix C++ compilers, but not with gcc. Is there
something else that I should #include or #define ?
Thanks in advance.
Lourens...