<br>Hi Michael,<br><br><br>You are missing to link with the ITKAlgorithms library.<br><br><br>The class: itkWatershedMiniPipelineProgressCommand<br><br>is defined in the file:<br><br>   Code/Algorithms/itkWatershedMiniPipelineProgressCommand.h<br>
<br>and makes part of the ITKAlgorithms library.<br><br><br>Simply add &quot;ITKAlgorithms&quot; to the TARGET_LINK_LIBRARY<br>
command in your CMakeLists.txt file.<br>
<br>Something like:<br><br>ADD_EXECUTABLE(WatershedSegmentation1 WatershedSegmentation1.cxx )<br>TARGET_LINK_LIBRARIES(WatershedSegmentation1 ITKAlgorithms ITKIO)<br><br><br><br>     Regards,<br><br><br>            Luis<br>
<br><br>------------------------------------------<br><div class="gmail_quote">On Wed, Aug 12, 2009 at 8:34 AM, Michael Siegesmund <span dir="ltr">&lt;<a href="mailto:TheSmashingPumpkin@web.de">TheSmashingPumpkin@web.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I included the WatershedImageFilter in my project and created a watershed object. Now I get some linker errors from MSVS 2005. I already looked into the mailing-archive and added &quot;/FORCE:MULTIPLE&quot; to the linker options (to prevent linker errors) but nothing changed. Any idea how to solve the problem? (All other filters produce no linker errors - only watershed does.)<br>

<br>
<br>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<br>
#include &quot;itkWatershedImageFilter.h&quot;<br>
<br>
typedef itk::WatershedImageFilter&lt;ScalarImageType&gt; WatershedFilterType;<br>
WatershedFilterType::Pointer watershed = WatershedFilterType::New();<br>
<br>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<br>
error LNK2001: unresolved external symbol &quot;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 &quot; (?PrintSelf@WatershedMiniPipelineProgressCommand@itk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)    SimpleView4.obj<br>

<br>
error LNK2001: unresolved external symbol &quot;public: virtual void __thiscall itk::WatershedMiniPipelineProgressCommand::Execute(class itk::Object const *,class itk::EventObject const &amp;)&quot; (?Execute@WatershedMiniPipelineProgressCommand@itk@@UAEXPBVObject@2@ABVEventObject@2@@Z)       SimpleView4.obj<br>

<br>
error LNK2001: unresolved external symbol &quot;public: virtual void __thiscall itk::WatershedMiniPipelineProgressCommand::Execute(class itk::Object *,class itk::EventObject const &amp;)&quot; (?Execute@WatershedMiniPipelineProgressCommand@itk@@UAEXPAVObject@2@ABVEventObject@2@@Z)     SimpleView4.obj<br>

<br>
fatal error LNK1120: 3 unresolved externals     C:\Dokumente und Einstellungen\siegesmund\Desktop\Neuer Ordner\Test\Release\qtsimpleview.exe<br>
<br>
<br>
<br>
________________________________________________________________<br>
Neu: <a href="http://WEB.DE" target="_blank">WEB.DE</a> Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate<br>
für nur 19,99 Euro/mtl.!* <a href="http://produkte.web.de/go/02/" target="_blank">http://produkte.web.de/go/02/</a><br>
<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>
Please keep messages on-topic and check the ITK FAQ at: <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>
</blockquote></div><br>