This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Lourens Janse van Rensburg wrote:
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'


On cygwin and some other platforms unicode is not supported in libstdc++. There is nothing you can do except to change standard template library. On windows (cygwin) you can use STLport (www.stlport.org) instead of libstdc++ that has support for unicode. You could try the same thing on other problematic unix systems since STLport is portable.


Darko


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]