This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Building gcc to support wide-character operations
- From: "Dale Peakall" <dale dot peakall at bit-arts dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Thu, 16 May 2002 12:15:07 +0100
- Subject: Building gcc to support wide-character operations
GCC: 3.1 20020510 (prerelease).
Any idea how I can compile a version of gcc/libstdc++
that properly supports wchar_t on Solaris8?
i.e. supports wcin, wcout etc.
Just changing c++config.h in the installed distro to
define _GLIBCPP_USE_WCHAR_T gets wcin, wcout etc.
defined but it appears that it's trying to bring
various c-library functions not even mentioned
in the standard (i.e. vfwscanf, wswscanf, vwscanf,
wcstof, iswblank) into the std namespace.
I can't find any of these functions used by libstdc++
(although I may have missed something).
Commenting out these lines in cwtype and cwctype
allows the program to compile, but it won't link
because it appears libstdc++ hasn't compiled a
whole load of support code.
My code certainly doesn't want them. But how do I
get the darn thing compiled to actually support
it?
TIA.
- Dale.
mailto:dale.peakall@bit-arts.com