This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]