Compile landmark based registration

I am trying to compile this WiKi example,
but got several errors such as error: variable or field ‘CreateFixedImage’ declared void
void CreateFixedImage(ImageType::Pointer image).

I was able to compile those examples come with ITK. Do I need VTK to compile this example, or is it because of some other problems?


Maybe you are using too new of a compiler? Moving the definition of those two function from the bottom of the file to the top of the file (where their prototypes are) should resolve that error. Of course, you need to remove the function prototypes too!