[Insight-users] Build errors during ImageViewer application
Luis Ibanez
luis . ibanez at kitware . com
Wed, 03 Sep 2003 19:35:28 -0400
Hi Sandy,
Your configuration is missing to link with ITK libraries.
Did you configure InsightApplications using CMake ?
Did you run CMake at the top level of the InsightApplication
directory ? (not in one of the subdirectories).
Did you provide the binary directory where you built ITK ?
Luis
--------------------
Sandy Gowda wrote:
> Hi,
> I have tried to run ImageViewer application. There were no compilation
> error when I try to execute it gave me following errors. It gave 90
> errors but I am attaching some errors. Please let me know what I should do.
>
> --------------------Configuration: itkImageViewer - Win32
> Debug--------------------
> Linking...
> itkImageViewer.obj : error LNK2001: unresolved external symbol "public:
> static void __cdecl itk::LightObject::operator delete(void *)"
> (??3LightObject at itk@@SAXPAX at Z <mailto:??3LightObject at itk@@SAXPAX at Z>)
> itkImageViewer.obj : error LNK2001: unresolved external symbol "public:
> static void * __cdecl itk::LightObject::operator new(unsigned int)"
> (??2LightObject at itk@@SAPAXI at Z <mailto:??2LightObject at itk@@SAPAXI at Z>)
> itkImageViewer.obj : error LNK2001: unresolved external symbol "public:
> static class itk::SmartPointer<class itk::LightObject> __cdecl
> itk::ObjectFactoryBase::CreateInstance(char const *)"
> (?CreateInstance at ObjectFactoryBase@itk@@SA?AV?$SmartPointer
> <mailto:?CreateInstance at ObjectFactoryBase@itk@@SA?AV?$SmartPointer>
> @VLightObject at itk@@@2 at PBD@Z)
> itkImageViewer.obj : error LNK2001: unresolved external symbol
> "protected: class itk::DataObject * __thiscall
> itk::ProcessObject::GetOutput(unsigned int)"
> (?GetOutput at ProcessObject@itk@@IAEPAVDataObject at 2@I at Z
> <mailto:?GetOutput at ProcessObject@itk@@IAEPAVDataObject at 2@I at Z>)
> itkImageViewer.obj : error LNK2001: unresolved external symbol
> "protected: virtual void __thiscall
> itk::ProcessObject::PropagateResetPipeline(void)"
> (?PropagateResetPipeline at ProcessObject@itk@@MAEXXZ
> <mailto:?PropagateResetPipeline at ProcessObject@itk@@MAEXXZ>)
> itkImageViewer.obj : error LNK2001: unresolved external symbol
> "protected: virtual void __thiscall
> itk::ProcessObject::RemoveOutput(class itk::DataObject *)"
> (?RemoveOutput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z
> <mailto:?RemoveOutput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z>)
> itkImageViewer.obj : error LNK2001: unresolved external symbol
> "protected: virtual void __thiscall itk::ProcessObject::AddOutput(class
> itk::DataObject *)"
> (?AddOutput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z
> <mailto:?AddOutput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z>)
> itkImageViewer.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
> <mailto:?SetNthOutput at ProcessObject@itk@@MAEXIPAVDataObject at 2@@Z>)
> itkImageViewer.obj : error LNK2001: unresolved external symbol
> "protected: virtual void __thiscall
> itk::ProcessObject::GenerateOutputRequestedRegion(class itk::DataObject
> *)"
> (?GenerateOutputRequestedRegion at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z
> <mailto:?GenerateOutputRequestedRegion at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z>)
> itkImageViewer.obj : error LNK2001: unresolved external symbol
> "protected: virtual void __thiscall
> itk::ProcessObject::GenerateInputRequestedRegion(void)"
> (?GenerateInputRequestedRegion at ProcessObject@itk@@MAEXXZ
> <mailto:?GenerateInputRequestedRegion at ProcessObject@itk@@MAEXXZ>)
> itkImageViewer.obj : error LNK2001: unresolved external symbol
> "protected: virtual void __thiscall
> itk::ProcessObject::RemoveInput(class itk::DataObject *)"
> (?RemoveInput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z
> <mailto:?RemoveInput at ProcessObject@itk@@MAEXPAVDataObject at 2@@Z>)
> Can anybody help me. I dont know whether I am doing anything wrong if
> anybody can let me know how to go by using insight application it would
> really help.If i have to use fltk should I download in the same folder
> as insight toolkit and should I use cmake for that. Please let me know.
> Thank you
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder
> <http://us . rd . yahoo . com/evt=10469/*http://sitebuilder . yahoo . com> - Free,
> easy-to-use web site design software