Am Montag, 27. November 2006 10:37 schrieb Jean-Pierre Chrétien: > Local configuration problem ?
No. It seems to be a known bug that was fixed in gcc 3.4 (and reappeared in 4.1.0 and was fixed in 4.1.1 again): http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6702 > I have libstdc++.so in /usr/local/lib (version 5.0.5, installed in March 2004). > > Should I upgrade libstdc++ ? No. It needs to match your compiler. Does the attached patch work for you? Georg
Index: src/support/docstring.h =================================================================== --- src/support/docstring.h (Revision 16082) +++ src/support/docstring.h (Arbeitskopie) @@ -70,8 +70,14 @@ lyx::docstring & operator+=(lyx::docstri } // namespace lyx -#if SIZEOF_WCHAR_T != 4 && defined(__GNUC__) && defined(__GNUC_MINOR__) && __GNUC__ == 3 && __GNUC_MINOR__ < 4 -// Missing char_traits methods in gcc 3.3 and older. Taken from gcc 4.2svn. +#if defined(__GNUC__) && defined(__GNUC_MINOR__) && \ + ((SIZEOF_WCHAR_T != 4 && __GNUC__ == 3 && __GNUC_MINOR__ < 4) || \ + (!defined(_GLIBCPP_USE_WCHAR_T) && !defined(_GLIBCXX_USE_WCHAR_T))) +// gcc 3.3 and older does not have char_traits for any other character type +// than char and wchar_t. +// Some gcc versions do not have wchar_t support on solaris: +// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6702 +// This implementation is taken from gcc 4.2svn. namespace std {$ template<typename T> void