<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Isn't there someone can answer my question here?? <br></span></div><div><br></div> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight: bold;">From:</span></b> Abayiz <abayiz@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> "insight-users@itk.org" <insight-users@itk.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, November 18, 2011 1:44 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Insight-users] Cmake Linking Object Error: undefined reference<br> </font> <br>
<div id="yiv477197975"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); 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<itk::Image<float, 3u>, itk::Image<float, 3u>, float>]+0x458): undefined reference to `itk::VavBoneSegmentationLevelSetImageFilter<itk::Image<float, 3u>, itk::Image<float, 3u>,
float>::SetThirdAdvectionFunction(itk::Image<itk::FixedArray<float, 3u>, 3u>*)'<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 "Release")<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>
<div>Abayiz</div></div></div></div><br>_____________________________________<br>Powered by www.kitware.com<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><br> </div> </div> </div></body></html>