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