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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux