public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Where's std.h?
@ 1997-11-13 19:39 neal
  1997-11-14  9:37 ` Joe Buck
  0 siblings, 1 reply; 4+ messages in thread
From: neal @ 1997-11-13 19:39 UTC (permalink / raw)
  To: egcs

I'm trying to build ptolemy-0.7 using egcs-971105 glibc2.0.5.  There
is no <std.h>.  Is this standard or not?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Where's std.h?
  1997-11-13 19:39 Where's std.h? neal
@ 1997-11-14  9:37 ` Joe Buck
  1997-11-15 17:45   ` Neal Becker
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Buck @ 1997-11-14  9:37 UTC (permalink / raw)
  To: neal; +Cc: egcs

> I'm trying to build ptolemy-0.7 using egcs-971105 glibc2.0.5.  There
> is no <std.h>.  Is this standard or not?

No, std.h is not standard, it is a libg++'ism.  (I was responsible for
putting that into Ptolemy years ago, but you probably want to replace
uses of std.h with the appropriate standard headers, such as <stdlib.h>
and <string.h>).



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Where's std.h?
  1997-11-14  9:37 ` Joe Buck
@ 1997-11-15 17:45   ` Neal Becker
  1997-11-15 17:55     ` Joe Buck
  0 siblings, 1 reply; 4+ messages in thread
From: Neal Becker @ 1997-11-15 17:45 UTC (permalink / raw)
  To: Joe Buck; +Cc: egcs

>>>>> "Joe" == Joe Buck <jbuck@synopsys.com> writes:

    >> I'm trying to build ptolemy-0.7 using egcs-971105 glibc2.0.5.  There
    >> is no <std.h>.  Is this standard or not?

    Joe> No, std.h is not standard, it is a libg++'ism.  (I was responsible for
    Joe> putting that into Ptolemy years ago, but you probably want to replace
    Joe> uses of std.h with the appropriate standard headers, such as <stdlib.h>
    Joe> and <string.h>).


Thanks.  I just wish I could find something to test to determine what
is the libstdc++ version so I could make the changes conditional.
Any ideas?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Where's std.h?
  1997-11-15 17:45   ` Neal Becker
@ 1997-11-15 17:55     ` Joe Buck
  0 siblings, 0 replies; 4+ messages in thread
From: Joe Buck @ 1997-11-15 17:55 UTC (permalink / raw)
  To: Neal Becker; +Cc: jbuck, egcs

Joe> No, std.h is not standard, it is a libg++'ism.  (I was responsible for
Joe> putting that into Ptolemy years ago, but you probably want to replace
Joe> uses of std.h with the appropriate standard headers, such as <stdlib.h>
Joe> and <string.h>).
> 
> 
> Thanks.  I just wish I could find something to test to determine what
> is the libstdc++ version so I could make the changes conditional.
> Any ideas?

In principle, you can make the changes unconditional.  All std.h does
is include other headers; just include the ones you need instead.  This
will not break the code when you use older g++ ports.  As I said, it
should have been done that way originally.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-11-15 17:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-13 19:39 Where's std.h? neal
1997-11-14  9:37 ` Joe Buck
1997-11-15 17:45   ` Neal Becker
1997-11-15 17:55     ` Joe Buck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).