[Insight-users] Re : Help Please: Link error

sara meghellati sara_meghellati at yahoo.fr
Tue Aug 19 08:40:33 EDT 2008


Hi
I have built this itkReadITKImage3DSegmentShowVTK.cxx  successfully 
try to replace your Cmake file by the one that I have used:
 
PROJECT(test_itk)

FIND_PACKAGE ( ITK)
IF ( ITK_FOUND)
INCLUDE( ${USE_ITK_FILE} )
ENDIF( ITK_FOUND)
FIND_PACKAGE ( VTK)
IF ( VTK_FOUND)
INCLUDE( ${USE_VTK_FILE} )
ENDIF( VTK_FOUND)
ADD_EXECUTABLE(test_itk test_itk.cxx)
TARGET_LINK_LIBRARIES(test_itk ITKBasicFilters ITKIO ITKCommon ITKAlgorithms vtkRendering vtkVolumeRendering vtkIO vtkWidgets vtkGraphics vtkImaging vtkFiltering vtkCommon)

 
of course you have to change the project name.
Sara 

--- En date de : Mar 19.8.08, wassim_belhadj at topnet.tn <wassim_belhadj at topnet.tn> a écrit :

De: wassim_belhadj at topnet.tn <wassim_belhadj at topnet.tn>
Objet: [Insight-users] Help Please: Link error
À: insight-users at itk.org
Date: Mardi 19 Août 2008, 14h03

Hi
When i try to build the itkReadITKImage3DSegmentShowVTK.cxx example i have
always link problem like :




ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol
"public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol
"public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkTIFFImageIO.obj) : error LNK2001: unresolved external symbol
"public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkStimulateImageIO.obj) : error LNK2001: unresolved external
symbol "public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkBMPImageIO.obj) : error LNK2001: unresolved external symbol
"public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2001: unresolved external symbol
"public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkNiftiImageIO.obj) : error LNK2001: unresolved external
symbol "public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkAnalyzeImageIO.obj) : error LNK2001: unresolved external
symbol "public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>itkReadITKImage3DSegmentShowVTK.obj : error LNK2019: unresolved external
symbol "public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ) referenced in function "void
__cdecl
itksys::`dynamic initializer for
'SystemToolsManagerInstance''(void)"
(??__ESystemToolsManagerInstance at itksys@@YAXXZ)
2>ITKCommon.lib(itkMultiThreader.obj) : error LNK2001: unresolved external
symbol "public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkMetaImageIOFactory.obj) : error LNK2001: unresolved external
symbol "public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkBioRadImageIO.obj) : error LNK2001: unresolved external
symbol "public: __thiscall
itksys::SystemToolsManager::SystemToolsManager(void)"
(??0SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol
"public: __thiscall
itksys::SystemToolsManager::~SystemToolsManager(void)"
(??1SystemToolsManager at itksys@@QAE at XZ)
2>ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol
"public: __thiscall
itksys::SystemToolsManager::~SystemToolsManager(void)"
(??1SystemToolsManager at itksys@@QAE at XZ)

/******************************************************************************/
/******************************************************************************/
/******************************************************************************/
/******************************************************************************/
 How can i resolve this link problem please 
Thank you


_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users



      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080819/6644ece7/attachment.htm>


More information about the Insight-users mailing list