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.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: Minor changes



Martin von Loewis wrote:
> 
> I've tried to compile 2.90 with new-abi, and found I need to make some
> minor changes.

As noted in the release notes, you also need -fno-honor-std (after -fnew-abi).

> complex.cc was not wrapped into std. 

Right, that's an error.

> 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?).

No.  It's wrong in general to say

  namespace std {
  #include <anything!>
  }

because you don't know what else it might include that does have
a namespace wrapping.  (extern "C" nests nicely; namespace std doesn't.)
We don't have the C library wrapped yet. See 

  http://www.cantrip.org/cheaders.html 

for an introduction to C++/C header interaction.
Until we get the C headers wrapped, -fno-honor-std.

> 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.

As noted prominently in the release notes, iostreams are "not there" yet.
 
> 1998-07-23  Martin von Löwis  <loewis@informatik.hu-berlin.de>
> 
>         * src/complex.cc: Put everything into std.

Good.

>         * bits/std_cmath.h: Likewise.

No.  See http://www.cantrip.org/cheaders.html for an introduction to C++/C header
interaction.

>         * bits/std_ostream.h: Include bits/std_streambuf.h.

Probably.

Thanks,
Nathan Myers
ncm@cygnus.com