_GLIBCPP_USE_WCHAR_T undefined in FreeBSD's c++config.h?

Craig Rodrigues rodrigc@attbi.com
Thu Feb 20 13:57:00 GMT 2003


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@attbi.com



More information about the Gcc mailing list