www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/01/10:23:14

From: "A. Sinan Unur" <sinan DOT unur AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: "std::" doesn't compile
Date: Sun, 01 Feb 1998 09:31:56 -0500
Organization: Cornell University (http://www.cornell.edu/)
Lines: 29
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <34D4875C.1C0E411C@cornell.edu>
References: <6b00ni$c8q$1 AT winter DOT news DOT erols DOT com> <34D3F07B DOT 795C AT cs DOT com>
NNTP-Posting-Host: cu-dialup-1421.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John M. Aldrich wrote:

> 1) There is no "iostream" in DJGPP.  Try iostream.h.
> 
> 2) There is no such thing as "std" either.  'cout' is a global object.
> 
> 3) If this is what your book is teaching you, throw it out.  But I
> thought Stroustrup was better than that.

<iostream> is the C++ standad header name. i am no expert on this, but
AFAIK, use of .h names has been depracated.

in (2), std refers to the standard namespace.

i would not recommend throwing stroustrup out the window. i guess the
way the proposed and accepted C++ standard changed over the last year
has created some discrepancies between gcc and that book (which i think
the 3rd ed is the latest).

al stevens has a good article on similar problems in the september 97
issues of dr dobbs.
-- 
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA

mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/

- Raw text -


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