delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/20/12:15:17

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help!
Date: Fri, 20 Oct 2000 16:03:29 GMT
Organization: always disorganized
Lines: 37
Message-ID: <39f06ca2.29492238@news.freeserve.net>
References: <001101c03a9a$49fa5110$600917ac AT ausnt010 DOT latticesemi DOT com>
NNTP-Posting-Host: modem-91.new-mexico.dialup.pol.co.uk
X-Trace: newsg3.svr.pol.co.uk 972057810 13886 62.137.82.91 (20 Oct 2000 16:03:30 GMT)
NNTP-Posting-Date: 20 Oct 2000 16:03:30 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Kevin O'Dwyer wrote:

> I am doing some php3/MySQL stuff here.  php3 uses a lot of C language, so I
> figured just learn the whole C language.  Got the C++ book by Stephen Davis,

Why did you get a C++ book if you wanted to learn C?

> and tried to install the GNU C++ for Windows/NT. (as if the dad of three
> pre-teens can crash-learn anything!)
> 
> As a function check, I tried to compile this simple code below, also taken
> from the CD ROM included with the book.  But it stumbles over the included
> file iostream.h.

Actually, <iostream.h> is non-standard (although DJGPP supports it).
You should be using <iostream> anyway.  Your C++ book is out-of-date.

> The compiler finds errors in iostream.h.

But this shouldn't happen.

> FIRST FEW LINES OF iostream.h:
> =========================
> 
> #ifndef _IOSTREAM_H
> #ifdef __GNUG__
> #pragma interface
> #endif
> #define _IOSTREAM_H

At this point you are missing the line

#include <streambuf.h>

This would explain the errors you were getting.  But I don't see
how this line could be absent in the first place - perhaps someone
else knows.  What versions of DJGPP and GCC are you using?

- Raw text -


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