Hi I have this code:<br><br><span style="font-family: courier new,monospace;">    const unsigned int InputDimension = 3;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    typedef float InternalPixelType;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    typedef itk::Image&lt; InternalPixelType, InputDimension &gt; InternalImageType;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    typedef itk::ImageFileReader&lt; InternalImageType &gt; ReaderType;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    ReaderType::Pointer reader = ReaderType::New();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    try</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        reader-&gt;SetFileName(this-&gt;filepath.c_str());</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    catch(...)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        return;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    reader-&gt;Update();</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    const unsigned int OutputDimension = 3;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    typedef itk::RGBPixel&lt;unsigned char&gt; RGBPixelType;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    typedef itk::Image&lt; RGBPixelType, OutputDimension &gt; RGBImageType;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    typedef  itk::ImageFileWriter&lt; RGBImageType &gt; WriterType;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    WriterType::Pointer writer = WriterType::New();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    writer-&gt;SetFileName( &quot;outputimage.mhd&quot; );</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        typedef   itk::GradientMagnitudeRecursiveGaussianImageFilter&lt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">                                                        InternalImageType,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                                                        InternalImageType</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">                                                            &gt; GradientMagnitudeFilterType;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        GradientMagnitudeFilterType::Pointer gradienMagnitudeFilter = GradientMagnitudeFilterType::New();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        gradienMagnitudeFilter-&gt;SetInput( reader-&gt;GetOutput() );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        gradienMagnitudeFilter-&gt;SetSigma( 1.0 );</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        typedef  itk::WatershedImageFilter&lt; InternalImageType &gt; WatershedFilterType;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        WatershedFilterType::Pointer watershedFilter = WatershedFilterType::New();</span> // <b>from this code i gave error</b><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        watershedFilter-&gt;SetInput( gradienMagnitudeFilter-&gt;GetOutput() );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        watershedFilter-&gt;SetThreshold( this-&gt;params-&gt;Get_watershed_threshold() );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        watershedFilter-&gt;SetLevel( this-&gt;params-&gt;Get_watershed_flood_value() );</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        typedef itk::Functor::ScalarToRGBPixelFunctor&lt; unsigned long &gt; ColorMapFunctorType;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        typedef WatershedFilterType::OutputImageType  LabeledImageType;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        typedef itk::UnaryFunctorImageFilter&lt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                                        LabeledImageType,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">                                        RGBImageType,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                                        ColorMapFunctorType</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">                                                        &gt; ColorMapFilterType;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        ColorMapFilterType::Pointer colorMapFilter = ColorMapFilterType::New();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        colorMapFilter-&gt;SetInput(  watershedFilter-&gt;GetOutput() );</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        writer-&gt;SetInput( colorMapFilter-&gt;GetOutput() );</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        try</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">            writer-&gt;Update();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        }</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        catch( itk::ExceptionObject &amp; excep )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">            cerr &lt;&lt; &quot;Exception !&quot; &lt;&lt; endl;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">            cerr &lt;&lt; excep.GetDescription() &lt;&lt; endl;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">            return;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        }</span><br><br><br>I thing, that it is not wrong, but I get this errors from VS2008 <br>
<br><span style="font-family: courier new,monospace;">Error    1    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)    WatershedCompute.obj    WatershedSegmentation</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Error    2    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)    WatershedCompute.obj    WatershedSegmentation</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Error    3    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)    WatershedCompute.obj    WatershedSegmentation</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Error    4    fatal error LNK1120: 3 unresolved externals    C:\InsightApplications-3.20.0\src\muj_test6\Release\WatershedSegmentation.exe    WatershedSegmentation</span><br>
<br>I dont know, where is the problem :( In my other project it works fine...<br>I will be very happyif you help me<br>Thank you everybody<br><br>