LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

redefinition error with loops

In some of my CVI projects, I get the following error:

 

error: redefinition of 'i'

 

This is for two loops that have the same local variable name, both inside a function call like this:

 

fdsdfdsfda

function(void)
{
  for (int i=0; i<1000; i++)
  {
  }
	
  for (int i=0; i<10000; i++)
  {
  }
}
	

 

Now here's the catch!  This same code is identical in other CVI projects, where I don't get that error.  Seems like a Build Options issue, right?  But I can't find a difference between the two projects.

0 Kudos
Message 1 of 1
(541 Views)