[Insight-users] problem about building ITK
XIN LI
xli16 at jhem.jhmi.edu
Wed Oct 12 10:35:28 EDT 2005
Hello, insight users
I hava a problem about building ITK. When I built ITK using Visual Studio 6.0, I got 33 warnings. Then I ran the code HelloWorld to test the installation. I got these errors:
HelloWorld.obj : error LNK2001: unresolved external symbol "public: static class itk::SmartPointer __cdecl itk::ImageIOFactory::CreateImageIO(char const *,enum itk::ImageIOFactory::FileModeType)" (?CreateImageIO at ImageIOFactory@itk@@SA?AV?$SmartPointer at VImageIOBase@itk@@@2 at PBDW4FileModeType@12@@Z)
HelloWorld.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall itk::ImageIOBase::GetImageSizeInBytes(void)const " (?GetImageSizeInBytes at ImageIOBase@itk@@QBEIXZ)
HelloWorld.obj : error LNK2001: unresolved external symbol "class std::basic_ostream > & __cdecl itk::operator<<(class std::basic_ostream > &,class itk::ImageIORegion const &)" (??6itk@@YAAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@AAV12 at ABVImageIORegion@0@@Z)
HelloWorld.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall itk::ImageIORegion::PrintSelf(class std::basic_ostream > &,class itk::Indent)const " (?PrintSelf at ImageIORegion@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
HelloWorld.obj : error LNK2001: unresolved external symbol "public: void __thiscall itk::ImageIOBase::SetNumberOfDimensions(unsigned int)" (?SetNumberOfDimensions at ImageIOBase@itk@@QAEXI at Z)
HelloWorld.obj : error LNK2001: unresolved external symbol "public: class std::basic_string,class std::allocator > __thiscall itk::ImageIOBase::GetComponentTypeAsString(enum itk::ImageIOBase::IOComponentType)const " (?GetComponentTypeAsString at ImageIOBase@itk@@QBE?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@W4IOComponentType at 12@@Z)
It seems that ITK hasn't correctly built. But I built it according to the tutorial. The version of ITK I use is 2.0.1.
What should I do next? Should I change some of ITK source code because the compiler I use is Visual Studio 6.0?
Thanks!
Xin Li
More information about the Insight-users
mailing list