<html><body><div style="color:#000; background-color:#fff; 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; "><span>Now, I've tried also to Build the example:&nbsp;WatershedSegmentation1.cxx from Segmentation folder of ITK, and I have the same linking error:</span></div><div><span><div>1&gt;WatershedSegmentation1.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall itk::WatershedMiniPipelineProgressCommand::PrintSelf(class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,class itk::Indent)const " (?PrintSelf@WatershedMiniPipelineProgressCommand@itk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size:
 12pt; ">I have also built in the same way the examples ConnectedThresholdImageFilter.cxx and&nbsp;ConfidenceConnected.cxx and everything worked perfectly. I don't know why the linking error appear for some examples.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Thanks!</div></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Dora Szasz
 &lt;dora.szasz@yahoo.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> "insight-users@itk.org" &lt;insight-users@itk.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Sunday, May 22, 2011 12:47 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Linking error<br></font><br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv20607655"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: times, serif; ">Hello!</div><div style="font-size: 12pt; font-family: times, serif; "><br></div><div style="font-size: 12pt; font-family: times, serif; ">I am trying to build the example:&nbsp;http://www.insight-journal.org/browse/publication/146&nbsp;. I used cmake and visual studio to build the example, but when I'm trying to build it the following error appeared:&nbsp;1&gt;ImageExt.obj : error LNK2019: unresolved external symbol "public: class vtkImageData * __thiscall vtkKWImage::GetVTKImage(void)" (?GetVTKImage@vtkKWImage@@QAEPAVvtkImageData@@XZ) referenced in function __catch$_main$0</div><div style="font-size: 12pt; font-family: times, serif; "><br></div><div style="font-size: 12pt;
 font-family: times, serif; ">This is the CMakeLists.txt:&nbsp;</div><div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">cmake_minimum_required(VERSION 2.6)</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">PROJECT (ImageExt)</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">FIND_PACKAGE( ITK )</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">IF ( ITK_FOUND )</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="yiv20607655Apple-tab-span" style="white-space:pre;">        </span>INCLUDE(
 ${ITK_USE_FILE})</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">ENDIF( ITK_FOUND )</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">FIND_PACKAGE (VTK)</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">IF (VTK_FOUND)</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="yiv20607655Apple-tab-span" style="white-space:pre;">        </span>INCLUDE ( ${USE_VTK_FILE})</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">ENDIF (VTK_FOUND)</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times,
 serif"><br></font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york',
 times, serif">INCLUDE_DIRECTORIES (${ImageExt_SOURCE_DIR})</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">ADD_EXECUTABLE( ImageExt ImageExt.cxx )</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">TARGET_LINK_LIBRARIES (ImageExt ITKBasicFilters ITKCommon ITKIO&nbsp;</font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkCommon)</font></div><div><font
 class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times,
 serif"><br></font></div><div><font class="yiv20607655Apple-style-span" face="'times new roman', 'new york', times, serif">I don't know how to solve this problem. Thanks!</font></div></div></div></div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br></div></div></div></body></html>