delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/09/19:21:39

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Total confusion
Date: Sun, 10 Dec 2000 00:15:23 GMT
Organization: always disorganized
Lines: 32
Message-ID: <3a32cadb.50776237@news.freeserve.net>
References: <hma53tgqvd548mo8vl9c4pg3sh2i8150u0 AT 4ax DOT com>
NNTP-Posting-Host: modem-171.dragon-wrasse.dialup.pol.co.uk
X-Trace: newsg2.svr.pol.co.uk 976407324 20134 62.137.1.171 (10 Dec 2000 00:15:24 GMT)
NNTP-Posting-Date: 10 Dec 2000 00:15:24 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

Shea F. Kenny wrote:

> 	I've just bought the book, C++ weekend crash course by Stephen
> Davis.  I'm using only the GNU complier and libraries, etc, that came
> on the CD rom.
> 
> 	I can find stdio.h, but can only find io.h, which I assume is
> iostream.h in Visual C, for the VERY first example programs in the
> book.  The example has # include stdio.h and iostream.h listed.

io.h and iostream.h are completely different things.  DJGPP has both.
But if your book suggests using iostream.h then it's out-of-date,
and you should find something better to learn from.  If you don't
feel like buying another book, you can download Bruce Eckel's
"Thinking in C++", which is quite good:

    http://www.bruceeckel.com/DownloadSites/

> 	At any rate, during compilation I get error after error that
> says parse error before 'va_list', and I'm using the source from the
> cd rom that came with the book, and get the same results as when I
> type it in myself.

Try the following program.  If this doesn't compile, then something's
wrong with your set-up.

// Hello World for C++
#include <iostream>
int main()
{
    std::cout << "Hello, world!\n";
}

- Raw text -


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