Mail Archives: djgpp/2000/01/13/16:14:17
karpfenteich AT gmx DOT de (Peter Karp) writes:
> Hi :-)
>
> I have a little question, why DJGPP can't compile a program where I've
> defined a counter in the for loop (which is better, as the counter is
> "more local" then, right?).
[snip code]
> BTW, Borland C++ 3.1 compiles this version without an error, while
> DJGPP gives the following error message:
[snip error]
I think this may be an FAQ somewhere. As I recall, there was a change
in the C++ specification somewhere along the line with regard to how
this is handled. DJGPP presumably uses the current spec, while
Borland's would be older.
The easiest solution is "don't do that"; just use the code that
works. If you're still interested, you might post to comp.lang.c++
where they will know all the gory details.
--
Nate Eldredge
neldredge AT hmc DOT edu
- Raw text -