This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.
I've tried to compile 2.90 with new-abi, and found I need to make some
minor changes.
complex.cc was not wrapped into std. After I did this, the global
math.h functions were not found anymore. So I wrapped cmath into std
as well (which is the right thing anyway, ain't it?).
Then I tried to compile helloworld, and found that <iostream> does not
include basic_streambuf.
Finally, I found that cout is not there yet, which was when I gave up
for the moment. I'll look back into things in August.
Regards,
Martin
P.S. I just subscribed to the list, sorry if that was covered already.
1998-07-23 Martin von Löwis <loewis@informatik.hu-berlin.de>
* src/complex.cc: Put everything into std.
* bits/std_cmath.h: Likewise.
* bits/std_ostream.h: Include bits/std_streambuf.h.
diff -ur /tmp/libstdc++-2.90/bits/std_cmath.h libstdc++-2.90/bits/std_cmath.h
--- /tmp/libstdc++-2.90/bits/std_cmath.h Sat Jul 11 05:00:29 1998
+++ libstdc++-2.90/bits/std_cmath.h Wed Jul 22 21:13:49 1998
@@ -16,5 +16,7 @@
#ifndef _CPP_CMATH
#define _CPP_CMATH 1
+namespace std {
# include_next <math.h>
+}
#endif
Only in libstdc++-2.90/bits: std_cmath.h~
diff -ur /tmp/libstdc++-2.90/bits/std_ostream.h libstdc++-2.90/bits/std_ostream.h
--- /tmp/libstdc++-2.90/bits/std_ostream.h Wed Jul 15 06:21:25 1998
+++ libstdc++-2.90/bits/std_ostream.h Thu Jul 23 09:12:08 1998
@@ -21,6 +21,7 @@
#include <bits/c++config.h>
#include <bits/std_ios.h>
+#include <bits/std_streambuf.h>
extern "C++" {
Only in libstdc++-2.90/bits: std_ostream.h~
diff -ur /tmp/libstdc++-2.90/src/complex.cc libstdc++-2.90/src/complex.cc
--- /tmp/libstdc++-2.90/src/complex.cc Tue Jul 14 20:01:07 1998
+++ libstdc++-2.90/src/complex.cc Wed Jul 22 21:11:29 1998
@@ -19,6 +19,8 @@
# define FCT(name) name
#endif
+namespace std{
+
template <class T, class charT, class traits>
basic_istream <charT, traits> &
operator >> (basic_istream<charT, traits> &__is, complex<T> &__x)
@@ -148,3 +149,5 @@
{
return complex<FLT> (FCT(tanh) (x.__value ()));
}
+
+} // std
Only in libstdc++-2.90/src: complex.cc~