[Insight-users] Linking error when usign watershed segmentation class

Luis Ibanez luis.ibanez at kitware.com
Tue Jan 11 10:32:01 EST 2005


Hi Sotiris,


You are simply missing to link with the library


               ITKAlgorithms


The symbol

       WatershedMiniPipelineProgressCommand

is defined in this library.




Please edit your CMakeLists.txt file and add ITKAlgorithms
to the list of libraries in the Command

    TARGET_LINK_LIBARIES()



    Regards,


      Luis




---------------------------
Sotiris Dimopoulos wrote:

> Hi!
> 
> I try to perform segmentation on a jpeg ct slice by
> using the itkWatershedImageFilter...
> 
> When I compile my file, everything is ok...
> When i try to build my code i get the following link
> errors :
> 
> 
> ///
> 
> Linking...
>    Creating library Debug/myProject.lib and object
> Debug/myProject.exp
> myProject.obj : error LNK2001: unresolved external
> symbol "public: virtual void __thiscall
> itk::WatershedMiniPipelineProgressCommand::Execute(class
> itk::Object *,class itk::EventObject const &)"
> (?Execute at WatershedMiniPipelineProgressCommand@itk@@UA
> EXPAVObject at 2@ABVEventObject at 2@@Z)
> myProject.obj : error LNK2001: unresolved external
> symbol "public: virtual void __thiscall
> itk::WatershedMiniPipelineProgressCommand::Execute(class
> itk::Object const *,class itk::EventObject const &)"
> (?Execute at WatershedMiniPipelineProgressCommand@i
> tk@@UAEXPBVObject at 2@ABVEventObject at 2@@Z)
> Debug/myProject.exe : fatal error LNK1120: 2
> unresolved externals
> Error executing link.exe.
> 
> ALL_BUILD - 3 error(s), 0 warning(s)  
> 
> ///
> 
> 
> Something goes wrong with the watershed class...
> 
> I wonder,If it was a problem with the data types,
> would i got an error during the compile procedure?
> 
> Has anyone got an idea?
> 
> Thanks in advance
>   
> Sotiris 
> 
> ____________________________________________________________
> Do You Yahoo!?
> Αποκτήστε τη δωρεάν @yahoo.gr διεύθυνση σας στο http://www.otenet.gr
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 






More information about the Insight-users mailing list