[Insight-users] how does ITK affect the compiling process.

Kexiang Wang kxwang at gmail.com
Wed Aug 11 17:45:41 EDT 2004


I play under VS6 (sp5)

when I include "iktImage.h" in the following example as:

#include "itkImage.h"

int main()
{
  int a = 0;
  for (int i = 0; i< 10; i++)
  {
	a += i;
  }

  for (int i = 0; i < 10; i++)
  {
	a -= i;
  }
  return 0;
}

It's OK. 

But when i remove the #include "itkImage.h". 
there is an error
error C2374: 'i' : redefinition; multiple initialization
        e:\work\test\main.cpp(6) : see declaration of 'i'

why?


More information about the Insight-users mailing list