delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/07/20/18:10:59

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP please: C++ Not working!!
Date: 20 Jul 2003 21:48:26 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 19
Message-ID: <bff2na$ibe$1@nets3.rz.RWTH-Aachen.DE>
References: <umqjhv4ncr5ni8j45i83dfvlfdhsakt6ib AT 4ax DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1058737706 18798 137.226.32.75 (20 Jul 2003 21:48:26 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 20 Jul 2003 21:48:26 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

RadSurfer <RadSurfer AT yahoo DOT com> wrote:
> h:\djgpp>gcc -x c++ hw.cpp -o hw.exe
> (is this okay?)

Sort of.  "gpp" or "gxx" would have been shorter and easier to type than
"gcc -x c++", but other than that, you're fine.

> WHAT is wrong here?

Your C++ knowledge, and probably also the textbook or tutarial you
learned it from.  ANSI/ISO Standard C++ exists since 1998, and the
source code you showed ignores it completely --- it's ancient
pre-standard C++.  The reason you're observing this now is that
compilers took quite a while to catch up with the language standard
--- for GCC, it took until version 3.0, and even so, it's still not
quite there.  But then, so is hardly any other compiler in the world.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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