This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: -static still required for me


Well, I finally tracked it down, and it turns out this problem had
nothing to do with binutils after all. There were some more explicit
wchar_t instantiations that weren't protected by _GLIBCPP_USE_WCHAR_T.

With this patch and the latest GCC mainline, I can bootstrap, compile and shared-link on sparc-sun-solaris2.6. `make check'
fails on 27_io/filebuf.cc
and 27_io/istream_unformatted.cc, all other tests pass.

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70



2000-05-04  Branko Cibej  <branko.cibej@hermes.si>

	* src/complex_io.cc: Don't instantiate inserters and extractors
	for wide-character streams unless _GLIBCPP_USE_WCHAR_T is defined.


Index: complex_io.cc
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/src/complex_io.cc,v
retrieving revision 1.1
diff -u -r1.1 complex_io.cc
--- complex_io.cc 2000/04/21 20:33:33 1.1
+++ complex_io.cc 2000/05/04 20:46:08
@@ -121,6 +121,7 @@
     operator<<(basic_ostream< char, char_traits<char> >&,
                const complex<long double>&);
 
+#ifdef _GLIBCPP_USE_WCHAR_T
   template
     basic_istream< wchar_t, char_traits<wchar_t> >&
     operator>>(basic_istream< wchar_t, char_traits<wchar_t> >&,
@@ -150,6 +151,7 @@
     basic_ostream< wchar_t, char_traits<wchar_t> >&
     operator<<(basic_ostream< wchar_t, char_traits<wchar_t> >&,
                const complex<long double>&);
+#endif // _GLIBCPP_USE_WCHAR_T
 }

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