This is the mail archive of the gcc@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]

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


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


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