delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/28/06:05:00

Newsgroups: comp.os.msdos.djgpp
From: manni DOT heumann AT gmx DOT de (Manni Heumann)
Subject: Re: missing <ostream>
References: <A07BFA639570509F DOT 80D3BEF731426AC0 DOT B418A6AEF5DF1D20 AT lp DOT airnews DOT net> <38910E6A DOT DF22D15A AT americasm10 DOT nt DOT com>
X-Newsreader: News Xpress 2.01
Date: Fri, 28 Jan 2000 10:05:18 GMT
NNTP-Posting-Host: dhcp33-226.uni-bielefeld.de
Message-ID: <389169e4$1@news.uni-bielefeld.de>
X-Trace: 28 Jan 2000 11:05:24 +0200, dhcp33-226.uni-bielefeld.de
Lines: 41
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Standard headers in C++ don't come with a suffix. 
libgpp should not be necessary for C++, you only need it to compile legacy 
code (e.g. to compile programs that use the String class).

But what sort of functionality should <ostream> contain?
AFAIK once you include <fstream> you don't have to worry about the subclasses. 
Try to change the #include lines below with this:
#include <fstream>
#include <string>

I bet it will compile then.


In article <38910E6A DOT DF22D15A AT americasm10 DOT nt DOT com>, ichapman AT nortelnetworks DOT com 
wrote:
>Hi,
>    your includes are missing the .h.  Have you looked up the faq? do
>you have libgpp.a in djgpp/lib ?  Regards Ian.
>
>Rodeo Red wrote:
>
>> I'm trying to compile a program which uses these headers:
>>
>> #include <iostream>
>> #include <fstream>
>> #include <ostream>
>> #include <string>
>>
>> I get this output:
>>
>> C:\C++\liner.cpp:7: ostream: No such file or directory (ENOENT)
>> I checked and I have the other headers and ostream.h but not ostream
>> Did I just lose ostream myself or is djgpp supposed to be missing
>> ostream ?
>>
>> Red
>

--

Manni

- Raw text -


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