[Insight-users] linking error by reading a TIFF-image

Alize Scheenstra alize_scheenstra at hotmail.com
Mon Jun 6 11:40:45 EDT 2005


Hi,

I am trying to read a TIFF image in the memory, but I get some linking 
errors. Here's my code:

typedef	unsigned short	PixelType;
const	unsigned int	Dimension = 2;
typedef	itk::Image	<PixelType,Dimension>	ImageType;

typedef	itk::ImageFileReader<ImageType>	ReaderType;
typedef	itk::TIFFImageIO	imageIOType;

ReaderType::Pointer reader = ReaderType::New();
imageIOType::Pointer imageIO = imageIOType::New();

reader->SetFileName("E:\\testing.tif");
reader->SetImageIO(imageIO);

try
{
	reader->GetOutput();
}
catch (itk::ExceptionObject)
{
	std::cout << "Exception caught in reading TIFF!" << std::endl;
}

These linking errors are all about the JPEG library or the linking of TIFF 
to JPEG (shown below).
I included all the libraries and and ITK is compiling without errors or 
warnings.

What is happening here?


Help me please,

greetings Alize

Compiling...
TIFFReader.cpp
Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' 
specification
   Creating library e:\Hera\Bin/Debug\Lies.lib and object 
e:\Hera\Bin/Debug\Lies.exp
ITKIO.lib(itkJPEGImageIO.obj) : error LNK2019: unresolved external symbol 
_itk_jpeg8_jpeg_read_header referenced in function "public: virtual bool 
__thiscall itk::JPEGImageIO::CanReadFile(char const *)" 
(?CanReadFile at JPEGImageIO@itk@@UAE_NPBD at Z)
itktiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol 
_itk_jpeg8_jpeg_read_header
ITKIO.lib(itkJPEGImageIO.obj) : error LNK2019: unresolved external symbol 
_itk_jpeg8_jpeg_stdio_src referenced in function "public: virtual bool 
__thiscall itk::JPEGImageIO::CanReadFile(char const *)" 
(?CanReadFile at JPEGImageIO@itk@@UAE_NPBD at Z)
ITKIO.lib(itkJPEGImageIO.obj) : error LNK2019: unresolved external symbol 
_itk_jpeg8_jpeg_CreateDecompress referenced in function "public: virtual 
bool __thiscall itk::JPEGImageIO::CanReadFile(char const *)" 
(?CanReadFile at JPEGImageIO@itk@@UAE_NPBD at Z)
itktiff.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol 
_itk_jpeg8_jpeg_CreateDecompress

etc.etc.

ITKIO.lib(itkNrrdImageIO.obj) : error LNK2019: unresolved external symbol 
_itk_nrrdIoStateNix referenced in function "public: virtual void __thiscall 
itk::NrrdImageIO::ReadImageInformation(void)" 
(?ReadImageInformation at NrrdImageIO@itk@@UAEXXZ)
ITKIO.lib(itkNrrdImageIO.obj) : error LNK2019: unresolved external symbol 
_itk_nrrdNix referenced in function "public: virtual void __thiscall 
itk::NrrdImageIO::ReadImageInformation(void)" 
(?ReadImageInformation at NrrdImageIO@itk@@UAEXXZ)
ITKIO.lib(itkNrrdImageIO.obj) : error LNK2019: unresolved external symbol 
_itk_nrrdKeyValueIndex referenced in function "public: virtual void 
__thiscall itk::NrrdImageIO::ReadImageInformation(void)" 
(?ReadImageInformation at NrrdImageIO@itk@@UAEXXZ)

etc.etc.

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



More information about the Insight-users mailing list