1 Reply Latest reply on Mar 25, 2010 8:56 AM by jerrya

    for scope error




      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.