delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/21/00:31:40

From: "A. Sinan Unur" <asu1 AT c-o-r-n-e-l-l DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: stdiobuf & stdiostream.h
Date: 21 Dec 2002 05:16:48 GMT
Organization: Cornell University
Lines: 45
Sender: asu1 AT cornell DOT invalid (on pool-141-149-208-78.syr.east.verizon.net)
Message-ID: <Xns92EB2D7FF467asu1cornelledu@132.236.56.8>
References: <atva2n$32cvt$1 AT ID-79865 DOT news DOT dfncis DOT de>
NNTP-Posting-Host: pool-141-149-208-78.syr.east.verizon.net
X-Trace: news01.cit.cornell.edu 1040447808 17323 141.149.208.78 (21 Dec 2002 05:16:48 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 21 Dec 2002 05:16:48 GMT
User-Agent: Xnews/5.04.25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Alex Vinokur" <alexvn AT bigfoot DOT com> wrote in news:atva2n$32cvt$1 AT ID-
79865.news.dfncis.de:

> I would like to use class stdiobuf.
> However file <stdiostream.h> is missing in GNU gcc/gpp in DJGPP.
> 
> Is it proposed to add <stdiostream.h> ?
> 
> P.S. For instance, CYGWIN_NT-5.0 does contain <stdiostream.h>

i am no expert on this, but i think it is part of the old GNU libio.


you mention that cygwin includes this file. however, note that including 
this header in a C++ file causes the following warning message to be 
issued:

$ gcc -Wall -c sss.cc
sss.cc:1:25: stdiostream.h: No such file or directory

asu1 AT AARDVARKIV /cygdrive/c/dload/misc
$ gcc -Wall -c sss.cc
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
                 from /usr/include/g++-3/stdiostream.h:34,
                 from sss.cc:1:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning 
This file includes at least one deprecated or antiquated header. Please 
consider using one of the 32 headers found in section 17.4.1.2 of the C++ 
standard. Examples include substituting the <X> header for the <X.h> 
header for C++ includes, or <sstream> instead of the deprecated header 
<strstream.h>. To disable this warning use -Wno-deprecated.

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
...
Thread model: posix
gcc version 3.2 20020927 (prerelease)

I would say your best bet is to try to solve your problem using the 
standard C++ library.
-- 
A. Sinan Unur
asu1 AT c-o-r-n-e-l-l DOT edu
Remove dashes for address
Spam bait: mailto:uce AT ftc DOT gov

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019