Subject: Why is wstring support missing? (gcc4)
To: None <>
From: Tobias Nygren <>
List: current-users
Date: 07/05/2006 23:19:29
It appears support for the wstring data type is missing, at least in 
I've read on gcc mailing lists that the libstdc++ configure script
is rather picky about which platforms it enables wstring support on.
wstring is afaik part of ISO C++.

I used the following steps to get wstring support:

src/gnu/lib/libstdc++-v3_4$ echo "#define _GLIBCXX_USE_WCHAR_T 1" > 
src/gnu/lib/libstdc++-v3_4$ USETOOLS=never make
src/gnu/lib/libstdc++-v3_4$ su
# USETOOLS=never make install
# USETOOLS=never make includes

Those steps at least make the minimal test case work:

#include <string>
using namespace std;
wstring foo;

Any chance to get this enabled? Should I send a PR?