This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: _GLIBCPP_USE_WCHAR_T undefined in FreeBSD's c++config.h?
- From: Craig Rodrigues <rodrigc at attbi dot com>
- To: Alexander Kabaev <ak03 at gte dot com>
- Cc: gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Thu, 20 Feb 2003 08:33:19 -0500
- Subject: Re: _GLIBCPP_USE_WCHAR_T undefined in FreeBSD's c++config.h?
- References: <20030219174538.GA55961@attbi.com> <20030219132328.68570f7d.ak03@gte.com>
On Wed, Feb 19, 2003 at 01:23:28PM -0500, Alexander Kabaev wrote:
> 1) Deffine _GLIBCPP_USE_WCHAR_T as 1 in
> /usr/src/gnu/lib/libstdc++/c++config.h file.
>
> 2) Comment out all references to wcstof in
> /usr/src/contrib/libstdc++/include/c_std/std_cwchar.h file.
>
> 3) Define WCHAR_MIN/WCHAR_MAX in /usr/src/include/wchar.h.
>
> 4) make buildworld/installworld.
I followed these instructions and modified the FreeBSD system
compiler, and now it looks like I can successfully compile
code with std::wstring.
When the problems that you mentioned are fixed in the FreeBSD
header files, then GCC should be able to successfully detect
wchar support on FreeBSD.
Thanks!
--
Craig Rodrigues
http://home.attbi.com/~rodrigc
rodrigc at attbi dot com