# Compile landmark based registration

**URL:** https://discourse.itk.org/t/compile-landmark-based-registration/995
**Category:** Beginner Questions
**Tags:** cmake
**Created:** [June 12, 2018, 1:38pm UTC](https://discourse.itk.org/t/compile-landmark-based-registration/995 "2018-06-12T13:38:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Lianli\_Liu](https://discourse.itk.org/letter_avatar_proxy/v4/letter/l/dc4da7/32.png) [@Lianli\_Liu](https://discourse.itk.org/u/Lianli_Liu)
#### Post date: [June 12, 2018, 1:38pm UTC](https://discourse.itk.org/t/compile-landmark-based-registration/995/1 "2018-06-12T13:38:16Z")

</div>

I am trying to compile this WiKi example [https://itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer](https://itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer),  
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?

Thanks!

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [June 13, 2018, 11:21am UTC](https://discourse.itk.org/t/compile-landmark-based-registration/995/2 "2018-06-13T11:21:52Z")

</div>

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!
