<div><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; background-color: rgb(255, 255, 255); ">First, if you are using ITK4, try changing your link</span></div>
<div><span style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;background-color:rgb(255,255,255)">libraries line in cmake with this one</span></div><div><span style="background-color:rgb(255,255,255)"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3">target_link_libraries(Slicer ${ITK_LIBRARIES})</font></span></div>
<div><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; background-color: rgb(255, 255, 255); ">I remember that being a problem sometimes.</span></div>
<div><span style="background-color: rgb(255, 255, 255); "><div style="font-family: arial; font-size: small; "><span style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; background-color: rgb(255, 255, 255); "><br>
</span></div><div style="font-family: arial; font-size: small; "><span style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; background-color: rgb(255, 255, 255); ">Basically the linker cannot find the function </span></div>
</span><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; background-color: rgb(255, 255, 255); ">SetThirdAdvectionFunction. </span><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; background-color: rgb(255, 255, 255); ">Where is it defined ?</span></div>
<div><font class="Apple-style-span" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3"><span class="Apple-style-span" style="font-size: 16px; background-color: rgb(255, 255, 255); ">Do you have </span></font><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; background-color: rgb(255, 255, 255); ">SetThirdAdvectionFunction f</span><font class="Apple-style-span" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3"><span class="Apple-style-span" style="font-size: 16px; background-color: rgb(255, 255, 255); ">unction </span></font></div>
<div><font class="Apple-style-span" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3"><span class="Apple-style-span" style="font-size: 16px; background-color: rgb(255, 255, 255); ">implemented in </span></font><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; background-color: rgb(255, 255, 255); ">VavBoneSegmentationLevelSetImageFilter.cxx?</span></div>
<div><div><font class="Apple-style-span" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3">Do you have it declared in your </font><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; background-color: rgb(255, 255, 255); ">VavBoneSegmentationLevelSetImageFilter.h</span></div>
<div><span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; background-color: rgb(255, 255, 255); ">file ?</span></div><div><font class="Apple-style-span" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3"><br>
</font></div><div><font class="Apple-style-span" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3">Regards, </font></div><div><font class="Apple-style-span" face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3">Cagatay<br>
</font>
<br><div class="gmail_quote">On Fri, Nov 18, 2011 at 3:44 AM, Abayiz <span dir="ltr">&lt;<a href="mailto:abayiz@yahoo.com" target="_blank">abayiz@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi all,</div><div><br></div><div>I am using ccmake to compile my itk code. But the compilation problem occurs while building a specific target for object file. Here is the error message from the screen: </div>

<div><br></div><div>*******************Scanning dependencies of target VavSegment<br>[100%] Building CXX object CMakeFiles/VavSegment.dir/VavSegment.o<br>Linking CXX executable VavSegment<br>CMakeFiles/VavSegment.dir/VavSegment.o:(.rodata._ZTVN3itk38VavBoneSegmentationLevelSetImageFilterINS_5ImageIfLj3EEES2_fEE[vtable for itk::VavBoneSegmentationLevelSetImageFilter&lt;itk::Image&lt;float, 3u&gt;, itk::Image&lt;float, 3u&gt;, float&gt;]+0x458): undefined reference to `itk::VavBoneSegmentationLevelSetImageFilter&lt;itk::Image&lt;float, 3u&gt;, itk::Image&lt;float, 3u&gt;,
 float&gt;::SetThirdAdvectionFunction(itk::Image&lt;itk::FixedArray&lt;float, 3u&gt;, 3u&gt;*)&#39;<br>collect2: ld returned 1 exit status<br>make[2]: *** [VavSegment] Error 1<br>make[1]: *** [CMakeFiles/VavSegment.dir/all] Error 2<br>

make: *** [all] Error 2<br>********************</div><div><br></div><div>My CMakeLists is as follows: </div><div><br></div><div>****************</div><div>cmake_minimum_required(VERSION 2.4)<br><br>PROJECT( VavSegment )<br>

<br>FIND_PACKAGE(ITK)<br>  IF(ITK_FOUND)<br>    INCLUDE(${ITK_USE_FILE})<br>ENDIF(ITK_FOUND)<br><br>SET(CMAKE_BUILD_TYPE &quot;Release&quot;)<br><br>ADD_EXECUTABLE( VavSegment VavSegment.cxx<br>VavBoneSegmentationLevelSetFunction.h<br>

VavBoneSegmentationLevelSetFunction.txx<br>VavBoneSegmentationLevelSetImageFilter.h<br>VavBoneSegmentationLevelSetImageFilter.txx<br> )<br><br>TARGET_LINK_LIBRARIES( VavSegment<br>              
 ITKIO ITKCommon ITKBasicFilters ITKStatistics ITKAlgorithms<br>            )<br>***************************</div><div><br>
</div>
<div>What could be the problem? Many thanks in advance! </div>
<div>Regards,</div><span><font color="#888888">
<div>Abayiz</div></font></span></div></div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>
</div></div>