<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Yann,<div><br></div><div>What are the main components of your registration code (the headers)?</div><div><br></div><div>Try changing the last line of your Cmake list with the following,<br><div><br></div><div>TARGET_LINK_LIBRARIES (Registrationtest2 ITKIO
 ITKNumerics)</div><div><br></div><div>HTH,</div><div><br></div><div>Dawood</div><div><br></div><div><br></div><div>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</div><div><br></div><div>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</div><div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 14px; line-height: 16px; ">Hi all,<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none;
 outline-width: initial; outline-color: initial; ">I'm new to ITK. I was interested in its registration capacities. I download and succeed to build&nbsp; the sources (windows 32 bit, last cmake, visual studio 2008), and run the helloWorld example.<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">I write my own project, that is mostly derived from the registration examples.<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">But I have a full set of building errors, that seems to be related to the same problem (linkage to the libraries).<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">I expect this to be related to a bad cmake configuration, but I try hours to solve the problem unsuccessfully.<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">Here is my
 c make file :<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "># This is the root ITK CMakeLists file.<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">CMAKE_MINIMUM_REQUIRED(VERSION 2.4)<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">IF(COMMAND CMAKE_POLICY)<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp; CMAKE_POLICY(SET CMP0003 NEW)<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">ENDIF(COMMAND CMAKE_POLICY)<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial;
 outline-color: initial; "># This project is designed to be built outside the Insight source tree.<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">PROJECT(Registrationtest2)<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "># Find ITK.<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">FIND_PACKAGE(ITK REQUIRED)<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">INCLUDE(${ITK_USE_FILE})<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width:
 initial; outline-color: initial; ">INCLUDE_DIRECTORIES( ${ITK_INCLUDE_DIR} )<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">link_directories(${ITK_lib_dir})<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">ADD_EXECUTABLE(Registrationtest2 Registrationtest2.cxx )<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">TARGET_LINK_LIBRARIES(Registrationtest2 ${ITK_LIBRARIES})<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em;
 outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">and a few lines of building errors that are related to sources i haven't change :<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">1&gt;Registrationtest2.cxx<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">1&gt;..\Registrationtest2.cxx(68) : error C2039: 'itkGradientDescentOptimizer' : n'est pas membre de 'itk'<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">1&gt;..\Registrationtest2.cxx(68) : error C2146: erreur de syntaxe :
 absence de ';' avant l'identificateur 'OptimizerType'<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">1&gt;..\Registrationtest2.cxx(68) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">1&gt;..\Registrationtest2.cxx(68) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">1&gt;..\Registrationtest2.cxx(69) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color:
 initial; ">1&gt;..\Registrationtest2.cxx(69) : error C2143: erreur de syntaxe : absence de ';' avant '*'<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">1&gt;..\Registrationtest2.cxx(69) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">1&gt;..\Registrationtest2.cxx(78) : error C2065: 'OptimizerPointer' : identificateur non déclaré<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">(in French, sorry)<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none;
 outline-width: initial; outline-color: initial; ">I hope someone could help me, I'm despairing... thanks a lot !<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">Yann</span></div></div></td></tr></table>