Mail Archives: djgpp/2003/07/20/18:10:59
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 -