wrote:
> I have a strange problem with some of my c++ code. I have a normal
> for- loop like this
>
> for(int i = 1; .....
Not sure what's normal about five periods. I've never seen any
program that would actually use that construct.
> on MS-Windows with a Microsoft compiler everything is alright, but
> when I compile the same source on Linux with gcc-3.4, the variable "i"
> is "0" in the first pass of the loop.
>
> Anyone knows the answer of my problem? Maybe a compiler flag?
Maybe. But for the hell of it, I cannot make your program compile
anywhere. My compiler keeps telling me something in line with
"an executable statement outside of any function". I suggest to
look in the FAQ, #5.8.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask