[Insight-users] Linking error with use of itkImageToVTKImageFilter ?

Luis Ibanez luis.ibanez at kitware.com
Wed May 25 19:24:25 EDT 2005


Hi Stanislava,

You are missing to link with some VTK libraries.

Please post the CMakeLists.txt file of your project
and let us konw what version of VTK you are using.


    Thanks


       Luis



-----------------------------------
syssboxx-reg at yahoo.fr wrote:

> Hi all,
> I'm not very experienced with both itk and vtk,for the moment i was 
> making some processing with itk and saving the output to a file.Now I 
> want to make my algorithme with 3d images so I try to use vtk.I listened 
> some posting about itkImageToVTKImageFilter and the ways to connect itk 
> and vtk ( i use one example which read,segment a 2d image,write it and 
> show it in vtk . Now my program find the header but gives me some 
> errors.Could someone tell me how to solve this problem please. I list 
> bellow the errors:
> Thanks
>  
> --------------------Configuration: segex - Win32 
> RelWithDebInfo--------------------
> Compiling...
> segex.cpp.cxx
> Linking...
>    Creating library RelWithDebInfo/segex.lib and object 
> RelWithDebInfo/segex.exp
> segex.cpp.obj : error LNK2001: unresolved external symbol "public: 
> static class vtkInteractorStyleImage * __cdecl 
> vtkInteractorStyleImage::New(void)" 
> (?New at vtkInteractorStyleImage@@SAPAV1 at XZ 
> <mailto:?New at vtkInteractorStyleImage@@SAPAV1 at XZ>)
> segex.cpp.obj : error LNK2001: unresolved external symbol "public: void 
> __thiscall vtkRenderWindowInteractor::SetRenderWindow(class 
> vtkRenderWindow *)" 
> (?SetRenderWindow at vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z 
> <mailto:?SetRenderWindow at vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z>)
> segex.cpp.obj : error LNK2001: unresolved external symbol "public: 
> static class vtkRenderWindowInteractor * __cdecl 
> vtkRenderWindowInteractor::New(void)" 
> (?New at vtkRenderWindowInteractor@@SAPAV1 at XZ 
> <mailto:?New at vtkRenderWindowInteractor@@SAPAV1 at XZ>)
> segex.cpp.obj : error LNK2001: unresolved external symbol "public: 
> static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)" 
> (?New at vtkRenderWindow@@SAPAV1 at XZ <mailto:?New at vtkRenderWindow@@SAPAV1 at XZ>)
> segex.cpp.obj : error LNK2001: unresolved external symbol "public: 
> static class vtkRenderer * __cdecl vtkRenderer::New(void)" 
> (?New at vtkRenderer@@SAPAV1 at XZ <mailto:?New at vtkRenderer@@SAPAV1 at XZ>)
> segex.cpp.obj : error LNK2001: unresolved external symbol "public: 
> static class vtkImageActor * __cdecl vtkImageActor::New(void)" 
> (?New at vtkImageActor@@SAPAV1 at XZ <mailto:?New at vtkImageActor@@SAPAV1 at XZ>)
> RelWithDebInfo/segex.exe : fatal error LNK1120: 6 unresolved externals
> Error executing link.exe.
> ALL_BUILD - 7 error(s), 0 warning(s)
>  
> Stanislava Ivanova
> 
> ------------------------------------------------------------------------
> Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos 
> mails, photos et vidéos !
> Créez votre Yahoo! Mail 
> <http://us.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_1go/default/*http://fr.promotions.yahoo.com/mail/creer28.html> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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