Using the Intel(R) C++ Compiler Professional for applications running on IA-32, Version 11.1, Build 20090511. I am encountering the for-scope error thus:
file.cpp(389): error: "i" has already been declared in the current scope
for (int i = 0; i < (foo->bar_count - 1); i += 2)
This should be acceptable with the ANSI standard, but if I recall correctly there is a compiler option that I can specify that will eliminate this error. However after an hour-long Google search I still cannot find it.
Ok I found the Intel compiler doc here:
But it didn't provide me with the option I was hoping to find. Anyone? I noticed that there were a couple of "answers" to this question when I looked at the thread but didn't see any way to view those answers. So....any help would be appreciated, thanks!y