[gcc-help] std::wcout fails to compile

Lourens Janse van Rensburg Lourens.jansevanRensburg@intec.co.za
Tue Dec 14 07:40:00 GMT 2004


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...



More information about the Gcc-help mailing list