Can I build a wchar_t version using libstdc++ Version 2?
Yes you can, but first let us explain the problem. libstdc++ version 2 is an old c++ library that came bundled with GCC 2.9x. It pre-dates the C++ standard and is therefore not conforming. It is no longer actively maintained as it has been superseded by libstdc++ version 3 which comes bundled with GCC 3. libstdc++ does not have a typedef for std::wstring. It seems the reason for this is a bug in basic_string