problem building library

Vadim Egorov egorovv@HotPOP.com
Fri Oct 15 01:43:00 GMT 1999


There are definitely some problems with wchar_t undef cygwin but
shouldn't locale_fasets.h:38
        static const size_t 	table_size = 1u + ~(unsigned char)0;
be
        static const size_t 	table_size = 1u + (unsigned char)~0;
for table_size to be non-zero ?

Benjamin Kosnik <bkoz@cygnus.com> writes:
> > Building libstdc++ on Cygwin (gcc-2.95.1)I got following errors
> 
> >   bool
> >   ctype<wchar_t>::do_is(mask __m, char_type __c) const
> >   {
> >     return (__c < _S_table_size) && (_S_table[__c] & __m); 
> >   }
> 
> try disabling support for wchar_t in bits/c++config.h.in, by commenting 
> out 
> 
> // #define _GLIBCPP_USE_WCHAR_T 1
> 
> 
> The alternative is tracking down the wchar_t stuff under cygwin. . . 
> 
> -Benjamin
> 

-- 
Regards,
Vadim Egorov 



More information about the Libstdc++ mailing list