[Insight-users] Read an image!! HELP PLEASE!!!!!!!!!!!!

Massinissa Bandou Massinissa.Bandou at USherbrooke.ca
Tue Jan 17 16:43:59 EST 2012


Hello

I'm new on ITK. I have installed it correctly and I successfully run  
Hello world.
I'm using Windows7 64bits and VS2010. I tried to read an Image but.....
I created a folder which it has a CMakefile.txt, C++ and some headers.
===============CMakefile.txt=================
cmake_minimum_required (VERSION 2.6)
PROJECT( myProject )

FIND_PACKAGE ( ITK   REQUIRED )
IF ( ITK_FOUND )
          INCLUDE( ${ITK_USE_FILE} )
ENDIF( ITK_FOUND )

ADD_EXECUTABLE( myProject   myProject.cxx )
=============================================

=================C++ code====================
// Simple program for ITK image read/write in C++
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkImage.h"
#include "itkRGBPixel.h"
#include "itkGradientMagnitudeImageFilter.h"
int main( int , char * argv[])
{
	typedef unsigned char          PixelType;
     const unsigned int             Dimension = 3;
	typedef itk::Image< PixelType, Dimension > ImageType;
	typedef itk::ImageFileReader< ImageType> ReaderType;
	ReaderType::Pointer reader = ReaderType::New();
	const char * filename =argv[1];
	reader->SetFileName( filename );
	reader->Update();
	ImageType::Pointer image = reader->GetOutput();
	return 0;
}
========================================================
I configured it and generated with CMake 2.8.7

When I built the solution on VS2010, I got some errors

2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::MRCImageIOFactoryRegister__Private(void)"  
(?MRCImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::HDF5ImageIOFactoryRegister__Private(void)"  
(?HDF5ImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::GiplImageIOFactoryRegister__Private(void)"  
(?GiplImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::NrrdImageIOFactoryRegister__Private(void)"  
(?NrrdImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::NiftiImageIOFactoryRegister__Private(void)"  
(?NiftiImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::MetaImageIOFactoryRegister__Private(void)"  
(?MetaImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::BioRadImageIOFactoryRegister__Private(void)"  
(?BioRadImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::StimulateImageIOFactoryRegister__Private(void)"  
(?StimulateImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::VTKImageIOFactoryRegister__Private(void)"  
(?VTKImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::TIFFImageIOFactoryRegister__Private(void)"  
(?TIFFImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::PNGImageIOFactoryRegister__Private(void)"  
(?PNGImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::LSMImageIOFactoryRegister__Private(void)"  
(?LSMImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::BMPImageIOFactoryRegister__Private(void)"  
(?BMPImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::GDCMImageIOFactoryRegister__Private(void)"  
(?GDCMImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "void  
__cdecl itk::JPEGImageIOFactoryRegister__Private(void)"  
(?JPEGImageIOFactoryRegister__Private at itk@@YAXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::EventObject::Print(class  
std::basic_ostream<char,struct std::char_traits<char> > &)const "  
(?Print at EventObject@itk@@UBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall itk::EventObject::PrintSelf(class  
std::basic_ostream<char,struct std::char_traits<char> > &,class  
itk::Indent)const "  
(?PrintSelf at EventObject@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::EventObject::PrintHeader(class std::basic_ostream<char,struct  
std::char_traits<char> > &,class itk::Indent)const "  
(?PrintHeader at EventObject@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::EventObject::PrintTrailer(class std::basic_ostream<char,struct  
std::char_traits<char> > &,class itk::Indent)const "  
(?PrintTrailer at EventObject@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::Region::Print(class  
std::basic_ostream<char,struct std::char_traits<char> > &,class  
itk::Indent)const "  
(?Print at Region@itk@@UBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall itk::Region::PrintSelf(class  
std::basic_ostream<char,struct std::char_traits<char> > &,class  
itk::Indent)const "  
(?PrintSelf at Region@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall itk::Region::PrintHeader(class  
std::basic_ostream<char,struct std::char_traits<char> > &,class  
itk::Indent)const "  
(?PrintHeader at Region@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall itk::Region::PrintTrailer(class  
std::basic_ostream<char,struct std::char_traits<char> > &,class  
itk::Indent)const "  
(?PrintTrailer at Region@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2019: unresolved external symbol "public:  
__thiscall itk::ExceptionObject::ExceptionObject(char const *,unsigned  
int,char const *,char const *)" (??0ExceptionObject at itk@@QAE at PBDI00@Z)  
referenced in function "public: __thiscall  
itk::ImageFileReaderException::ImageFileReaderException(char const  
*,unsigned int,char const *,char const *)"  
(??0ImageFileReaderException at itk@@QAE at PBDI00@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual char const * __thiscall itk::ExceptionObject::what(void)const  
" (?what at ExceptionObject@itk@@UBEPBDXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual bool __thiscall itk::ExceptionObject::operator==(class  
itk::ExceptionObject const &)" (??8ExceptionObject at itk@@UAE_NABV01@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::ExceptionObject::Print(class  
std::basic_ostream<char,struct std::char_traits<char> > &)const "  
(?Print at ExceptionObject@itk@@UBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::ExceptionObject::SetLocation(char const  
*)" (?SetLocation at ExceptionObject@itk@@UAEXPBD at Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::ExceptionObject::SetLocation(class  
std::basic_string<char,struct std::char_traits<char>,class  
std::allocator<char> > const &)"  
(?SetLocation at ExceptionObject@itk@@UAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::ExceptionObject::SetDescription(char  
const *)" (?SetDescription at ExceptionObject@itk@@UAEXPBD at Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::ExceptionObject::SetDescription(class  
std::basic_string<char,struct std::char_traits<char>,class  
std::allocator<char> > const &)"  
(?SetDescription at ExceptionObject@itk@@UAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual char const * __thiscall  
itk::ExceptionObject::GetLocation(void)const "  
(?GetLocation at ExceptionObject@itk@@UBEPBDXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual char const * __thiscall  
itk::ExceptionObject::GetDescription(void)const "  
(?GetDescription at ExceptionObject@itk@@UBEPBDXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual char const * __thiscall  
itk::ExceptionObject::GetFile(void)const "  
(?GetFile at ExceptionObject@itk@@UBEPBDXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual unsigned int __thiscall  
itk::ExceptionObject::GetLine(void)const "  
(?GetLine at ExceptionObject@itk@@UBEIXZ)
2>myProject.obj : error LNK2019: unresolved external symbol "public:  
virtual __thiscall itk::ExceptionObject::~ExceptionObject(void)"  
(??1ExceptionObject at itk@@UAE at XZ) referenced in function "public:  
virtual __thiscall  
itk::ImageFileReaderException::~ImageFileReaderException(void)"  
(??1ImageFileReaderException at itk@@UAE at XZ)
2>myProject.obj : error LNK2019: unresolved external symbol "public:  
__thiscall itk::ExceptionObject::ExceptionObject(class  
itk::ExceptionObject const &)" (??0ExceptionObject at itk@@QAE at ABV01@@Z)  
referenced in function "public: __thiscall  
itk::ImageFileReaderException::ImageFileReaderException(class  
itk::ImageFileReaderException const &)"  
(??0ImageFileReaderException at itk@@QAE at ABV01@@Z)
2>myProject.obj : error LNK2019: unresolved external symbol "public:  
class itk::ExceptionObject & __thiscall  
itk::ExceptionObject::operator=(class itk::ExceptionObject const &)"  
(??4ExceptionObject at itk@@QAEAAV01 at ABV01@@Z) referenced in function  
"public: class itk::ImageFileReaderException & __thiscall  
itk::ImageFileReaderException::operator=(class  
itk::ImageFileReaderException const &)"  
(??4ImageFileReaderException at itk@@QAEAAV01 at ABV01@@Z)
2>myProject.obj : error LNK2019: unresolved external symbol  
"protected: virtual __thiscall  
itk::ProcessObject::~ProcessObject(void)"  
(??1ProcessObject at itk@@MAE at XZ) referenced in function "protected:  
virtual __thiscall itk::ImageSource<class itk::Image<unsigned char,3>  
 >::~ImageSource<class itk::Image<unsigned char,3> >(void)"  
(??1?$ImageSource at V?$Image at E$02 at itk@@@itk@@MAE at XZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual class itk::SmartPointer<class itk::LightObject> __thiscall  
itk::Object::CreateAnother(void)const "  
(?CreateAnother at Object@itk@@UBE?AV?$SmartPointer at VLightObject@itk@@@2 at XZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::LightObject::Delete(void)"  
(?Delete at LightObject@itk@@UAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::Object::Register(void)const "  
(?Register at Object@itk@@UBEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::Object::UnRegister(void)const "  
(?UnRegister at Object@itk@@UBEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::Object::SetReferenceCount(int)"  
(?SetReferenceCount at Object@itk@@UAEXH at Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::PrintSelf(class std::basic_ostream<char,struct  
std::char_traits<char> > &,class itk::Indent)const "  
(?PrintSelf at ProcessObject@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::LightObject::PrintHeader(class std::basic_ostream<char,struct  
std::char_traits<char> > &,class itk::Indent)const "  
(?PrintHeader at LightObject@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::LightObject::PrintTrailer(class std::basic_ostream<char,struct  
std::char_traits<char> > &,class itk::Indent)const "  
(?PrintTrailer at LightObject@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::Object::DebugOn(void)const "  
(?DebugOn at Object@itk@@UBEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::Object::DebugOff(void)const "  
(?DebugOff at Object@itk@@UBEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual unsigned long __thiscall itk::Object::GetMTime(void)const "  
(?GetMTime at Object@itk@@UBEKXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual class itk::TimeStamp const & __thiscall  
itk::Object::GetTimeStamp(void)const "  
(?GetTimeStamp at Object@itk@@UBEABVTimeStamp at 2@XZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::Object::Modified(void)const "  
(?Modified at Object@itk@@UBEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall itk::Object::SetTimeStamp(class  
itk::TimeStamp const &)"  
(?SetTimeStamp at Object@itk@@MAEXABVTimeStamp at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual unsigned int __thiscall  
itk::ProcessObject::GetNumberOfValidRequiredInputs(void)const "  
(?GetNumberOfValidRequiredInputs at ProcessObject@itk@@UBEIXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual class itk::SmartPointer<class itk::DataObject> __thiscall  
itk::ProcessObject::MakeOutput(class std::basic_string<char,struct  
std::char_traits<char>,class std::allocator<char> > const &)"  
(?MakeOutput at ProcessObject@itk@@UAE?AV?$SmartPointer at VDataObject@itk@@@2 at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::ProcessObject::Update(void)"  
(?Update at ProcessObject@itk@@UAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall  
itk::ProcessObject::UpdateLargestPossibleRegion(void)"  
(?UpdateLargestPossibleRegion at ProcessObject@itk@@UAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall  
itk::ProcessObject::UpdateOutputInformation(void)"  
(?UpdateOutputInformation at ProcessObject@itk@@UAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall  
itk::ProcessObject::PropagateRequestedRegion(class itk::DataObject *)"  
(?PropagateRequestedRegion at ProcessObject@itk@@UAEXPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::ProcessObject::UpdateOutputData(class  
itk::DataObject *)"  
(?UpdateOutputData at ProcessObject@itk@@UAEXPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::ProcessObject::ResetPipeline(void)"  
(?ResetPipeline at ProcessObject@itk@@UAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::ProcessObject::SetReleaseDataFlag(bool)"  
(?SetReleaseDataFlag at ProcessObject@itk@@UAEX_N at Z)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual bool __thiscall  
itk::ProcessObject::GetReleaseDataFlag(void)const "  
(?GetReleaseDataFlag at ProcessObject@itk@@UBE_NXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::ProcessObject::PrepareOutputs(void)"  
(?PrepareOutputs at ProcessObject@itk@@UAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall itk::ProcessObject::SetInput(class  
std::basic_string<char,struct std::char_traits<char>,class  
std::allocator<char> > const &,class itk::DataObject *)"  
(?SetInput at ProcessObject@itk@@MAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@PAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::SetNthInput(unsigned int,class itk::DataObject *)"  
(?SetNthInput at ProcessObject@itk@@MAEXIPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::RemoveInput(class itk::DataObject *)"  
(?RemoveInput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::RemoveInput(unsigned int)"  
(?RemoveInput at ProcessObject@itk@@MAEXI at Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::RemoveInput(class std::basic_string<char,struct  
std::char_traits<char>,class std::allocator<char> > const &)"  
(?RemoveInput at ProcessObject@itk@@MAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::SetPrimaryInput(class itk::DataObject *)"  
(?SetPrimaryInput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::SetOutput(class std::basic_string<char,struct  
std::char_traits<char>,class std::allocator<char> > const &,class  
itk::DataObject *)"  
(?SetOutput at ProcessObject@itk@@MAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@PAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::RemoveOutput(unsigned int)"  
(?RemoveOutput at ProcessObject@itk@@MAEXI at Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::RemoveOutput(class itk::DataObject *)"  
(?RemoveOutput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::RemoveOutput(class std::basic_string<char,struct  
std::char_traits<char>,class std::allocator<char> > const &)"  
(?RemoveOutput at ProcessObject@itk@@MAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::SetPrimaryOutput(class itk::DataObject *)"  
(?SetPrimaryOutput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::VerifyPreconditions(void)"  
(?VerifyPreconditions at ProcessObject@itk@@MAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::VerifyInputInformation(void)"  
(?VerifyInputInformation at ProcessObject@itk@@MAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall itk::ProcessObject::AddInput(class  
itk::DataObject *)"  
(?AddInput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::PushBackInput(class itk::DataObject const *)"  
(?PushBackInput at ProcessObject@itk@@MAEXPBVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::PopBackInput(void)"  
(?PopBackInput at ProcessObject@itk@@MAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::PushFrontInput(class itk::DataObject const *)"  
(?PushFrontInput at ProcessObject@itk@@MAEXPBVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::PopFrontInput(void)"  
(?PopFrontInput at ProcessObject@itk@@MAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::SetNthOutput(unsigned int,class itk::DataObject  
*)" (?SetNthOutput at ProcessObject@itk@@MAEXIPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::AddOutput(class itk::DataObject *)"  
(?AddOutput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::GenerateInputRequestedRegion(void)"  
(?GenerateInputRequestedRegion at ProcessObject@itk@@MAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::GenerateOutputRequestedRegion(class  
itk::DataObject *)"  
(?GenerateOutputRequestedRegion at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::GenerateOutputInformation(void)"  
(?GenerateOutputInformation at ProcessObject@itk@@MAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::PropagateResetPipeline(void)"  
(?PropagateResetPipeline at ProcessObject@itk@@MAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::ReleaseInputs(void)"  
(?ReleaseInputs at ProcessObject@itk@@MAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::CacheInputReleaseDataFlags(void)"  
(?CacheInputReleaseDataFlags at ProcessObject@itk@@MAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::ProcessObject::RestoreInputReleaseDataFlags(void)"  
(?RestoreInputReleaseDataFlags at ProcessObject@itk@@MAEXXZ)
2>myProject.obj : error LNK2019: unresolved external symbol "public:  
static double const itk::NumericTraits<double>::Zero"  
(?Zero@?$NumericTraits at N@itk@@2NB) referenced in function "public:  
static bool __cdecl itk::NumericTraits<double>::IsNegative(double)"  
(?IsNegative@?$NumericTraits at N@itk@@SA_NN at Z)
2>myProject.obj : error LNK2019: unresolved external symbol "public:  
static void __cdecl itk::LightObject::operator delete(void *)"  
(??3LightObject at itk@@SAXPAX at Z) referenced in function "protected:  
virtual void * __thiscall itk::ImageSource<class itk::Image<unsigned  
char,3> >::`scalar deleting destructor'(unsigned int)"  
(??_G?$ImageSource at V?$Image at E$02 at itk@@@itk@@MAEPAXI at Z)
2>myProject.obj : error LNK2019: unresolved external symbol  
"protected: __thiscall itk::Object::Object(void)"  
(??0Object at itk@@IAE at XZ) referenced in function "protected: __thiscall  
itk::ImportImageContainer<unsigned long,unsigned  
char>::ImportImageContainer<unsigned long,unsigned char>(void)"  
(??0?$ImportImageContainer at KE@itk@@IAE at XZ)
2>myProject.obj : error LNK2019: unresolved external symbol "public:  
__thiscall itk::ExceptionObject::ExceptionObject(class  
std::basic_string<char,struct std::char_traits<char>,class  
std::allocator<char> > const &,unsigned int,class  
std::basic_string<char,struct std::char_traits<char>,class  
std::allocator<char> > const &,class std::basic_string<char,struct  
std::char_traits<char>,class std::allocator<char> > const &)"  
(??0ExceptionObject at itk@@QAE at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@I00 at Z) referenced in function "public: __thiscall itk::MemoryAllocationError::MemoryAllocationError(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)"  
(??0MemoryAllocationError at itk@@QAE at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@I00 at Z)
2>myProject.obj : error LNK2019: unresolved external symbol  
"protected: class itk::DataObject * __thiscall  
itk::ProcessObject::GetPrimaryOutput(void)"  
(?GetPrimaryOutput at ProcessObject@itk@@IAEPAVDataObject at 2@XZ)  
referenced in function "public: class itk::Image<unsigned char,3> *  
__thiscall itk::ImageSource<class itk::Image<unsigned char,3>  
 >::GetOutput(void)"  
(?GetOutput@?$ImageSource at V?$Image at E$02 at itk@@@itk@@QAEPAV?$Image at E$02 at 2@XZ)
2>myProject.obj : error LNK2019: unresolved external symbol "public:  
static class itk::SmartPointer<class itk::LightObject> __cdecl  
itk::ObjectFactoryBase::CreateInstance(char const *)"  
(?CreateInstance at ObjectFactoryBase@itk@@SA?AV?$SmartPointer at VLightObject@itk@@@2 at PBD@Z) referenced in function "public: static class itk::SmartPointer<class itk::Image<unsigned char,3> > __cdecl itk::ObjectFactory<class itk::Image<unsigned char,3> >::Create(void)"  
(?Create@?$ObjectFactory at V?$Image at E$02 at itk@@@itk@@SA?AV?$SmartPointer at V?$Image at E$02 at itk@@@2 at XZ)
2>myProject.obj : error LNK2019: unresolved external symbol  
"protected: virtual __thiscall itk::Object::~Object(void)"  
(??1Object at itk@@MAE at XZ) referenced in function "protected: virtual  
__thiscall itk::ImportImageContainer<unsigned long,unsigned  
char>::~ImportImageContainer<unsigned long,unsigned char>(void)"  
(??1?$ImportImageContainer at KE@itk@@MAE at XZ)
2>myProject.obj : error LNK2019: unresolved external symbol "class  
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl  
itk::operator<<(class std::basic_ostream<char,struct  
std::char_traits<char> > &,class itk::Indent const &)"  
(??6itk@@YAAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@AAV12 at ABVIndent@0@@Z) referenced in function "protected: virtual void __thiscall itk::ImportImageContainer<unsigned long,unsigned char>::PrintSelf(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const "  
(?PrintSelf@?$ImportImageContainer at KE@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2019: unresolved external symbol  
"protected: virtual void __thiscall itk::Object::PrintSelf(class  
std::basic_ostream<char,struct std::char_traits<char> > &,class  
itk::Indent)const "  
(?PrintSelf at Object@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z) referenced in function "protected: virtual void __thiscall itk::ImportImageContainer<unsigned long,unsigned char>::PrintSelf(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const "  
(?PrintSelf@?$ImportImageContainer at KE@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
2>myProject.obj : error LNK2019: unresolved external symbol  
"protected: __thiscall itk::DataObject::DataObject(void)"  
(??0DataObject at itk@@IAE at XZ) referenced in function "protected:  
__thiscall itk::ImageBase<3>::ImageBase<3>(void)"  
(??0?$ImageBase@$02 at itk@@IAE at XZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::DataObject::Update(void)"  
(?Update at DataObject@itk@@UAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall  
itk::DataObject::PropagateRequestedRegion(void)"  
(?PropagateRequestedRegion at DataObject@itk@@UAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::DataObject::ResetPipeline(void)"  
(?ResetPipeline at DataObject@itk@@UAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual unsigned long __thiscall  
itk::DataObject::GetUpdateMTime(void)const "  
(?GetUpdateMTime at DataObject@itk@@UBEKXZ)
2>myProject.obj : error LNK2001: unresolved external symbol "public:  
virtual void __thiscall itk::DataObject::DataHasBeenGenerated(void)"  
(?DataHasBeenGenerated at DataObject@itk@@UAEXXZ)
2>myProject.obj : error LNK2001: unresolved external symbol  
"protected: virtual void __thiscall  
itk::DataObject::PropagateResetPipeline(void)"  
(?PropagateResetPipeline at DataObject@itk@@MAEXXZ)



I don't have any idea how to fix that!!!!

Thank you for your help



More information about the Insight-users mailing list