Georg Baum <[EMAIL PROTECTED]> writes:

> 
> Jean-Pierre Chrétien wrote:
> 
> > Sorry, I should have added the following lines:
> > 
> > Undefined                     first referenced
> >  symbol                           in file
> > std::char_traits<wchar_t>::not_eof(unsigned long const&)Chktex.o
> 
> What is your gcc version? What is the size of wchar_t? It should be 4,
> otherwise wchar_t should not be used.
> 
> These traits are defined in docstring.h inside an ifdef that tests for older
> gcc versions. It looks like we need to adjust that ifdef, but first we need
> to understand why you don't have them.

Compilation works with gcc 3.4.6/libstdc++.6.0.3.

As the test in docstring.h is:
#if SIZEOF_WCHAR_T != 4 && defined(__GNUC__) && defined(__GNUC_MINOR__) &&
__GNUC__ == 3 && __GNUC_MINOR__ < 4

the char_traits are not created if SIZEOF_WCHAR_T == 4, which is the case.
It seems that there should be an || operator in the #if, or just remove
the wchar test to create the templates for gcc 3.3 and under,

Sorry, I can't test your changes here any more, gcc upgrade is done...

-- 
Jean-Pierre




Reply via email to