[Insight-users] link error

Yannick Pannier pannier at lms.polytechnique.fr
Mon Mar 10 14:48:15 EDT 2008


Hi,

When trying to compile my project (configured with cmake), I've got the 
following linkage error.

In function `itk::ImageFileReader<itk::Image<unsigned short, 3u>, 
itk::DefaultConvertPixelTraits<unsigned short> 
 >::TestFileExistanceAndReadability()':
menus.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageItLj3EEENS_25DefaultConvertPixelTraitsItEEE31TestFileExistanceAndReadabilityEv[itk::ImageFileReader<itk::Image<unsigned 
short, 3u>, itk::DefaultConvertPixelTraits<unsigned short> 
 >::TestFileExistanceAndReadability()]+0x26): undefined reference to 
`itksys::SystemTools::FileExists(char const*, bool)'

Can somebody tell me which library to link with ?
I've already linked with :
ITKCommon ITKNumerics ITKIO ITKMetaIO ITKAlgorithms
    ITKNrrdIO itkgdcm itkjpeg12 itkjpeg16 itkopenjpeg
    itkpng itktiff itkjpeg8 ITKSpatialObject ITKNumerics
    itkvnl_inst itkvnl_algo itkv3p_netlib itkvnl itkvcl
    pthread itksys dl ITKDICOMParser ITKEXPAT
    ITKniftiio ITKznz itkzlib -Wl itkvnl_algo itkv3p_netlib

Thanks,

Yan



More information about the Insight-users mailing list