Mail Archives: djgpp/1999/11/23/19:05:02
Rodeo Red (rodeored AT netstep DOT net) wrote:
> This short example program from "Using C++ by Rob McGregor will not
> complile with djgpp and produces the messages below. I assume it
> probably does compile on some other compiler so I thought you could tell
> me what's making djgpp puke.
[...]
The code example has been bashed to death, already, so let me give
just one more advice, on a somewhat broader scale: you should consider
getting rid of that book, right now. It's teaching you a programming
language that doesn't exist, any more: pre-ANSI C++. The reason DJGPP
doesn't accept that program was simply that it's too old-fashioned.
Well, actually, you *can* get that program through gcc, by use of some
command line option documented in the 'C++ dialect' chapter of the gcc
documentation. But you shouldn't really do that.
[I continue to wonder how authors and publishing houses can dare to
publish so many books on topics like this, while the target is still
such a rapidly moving one as C++ has been, until the ANSI comittee
finally got through to its decision.]
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -