[Insight-users] Errors

Luis Ibanez luis.ibanez at kitware.com
Wed Sep 20 09:28:00 EDT 2006



Hi Brian,


You missed to add ITKIO to the list of libraries to link with the
executables.


Please look at the ITK Tutorials:

      http://www.itk.org/HTML/Tutorials.htm


In particular to:


http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/index.htm


     Regards,



         Luis



----------------------
Brian Chacko wrote:
> Hello,
> I had build one of the example files available at the examples 
> directory in the ITK toolkit. The file name is 
> DicomSeriesReadImageWrite2.cxx. I have configured the file along with 
> CMakeLists.txt in a new folder using CMAKE. Using the workspace 
> generated, i tried to build it in VC++ 6.0. While doing so a list of 
> errors was produced. The log is shown below
>  
> --------------------Configuration: DicomSeriesReadImageWrite2 - Win32 
> Debug--------------------
> Compiling...
> DicomSeriesReadImageWrite2.cxx
> Linking...
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "public: class std::vector<class std::basic_string<char,struct 
> std::char_traits<char>,class std::allocator<char> >,class 
> std::allocator<class std::basic_string<char,struct st
> d::char_traits<char>,class std::allocator<char> > > > const & __thiscall 
> itk::GDCMSeriesFileNames::GetFileNames(class 
> std::basic_string<char,struct std::char_traits<char>,class 
> std::allocator<char> >)" (?GetFileNames at GDCMSeriesFileNames@itk@@QAEABV 
> <mailto:?GetFileNames at GDCMSeriesFileNames@itk@@QAEABV>?
> $vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@std@@V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@4@@Z 
> <mailto:$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@std@@V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@4@@Z>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "public: class std::vector<class std::basic_string<char,struct 
> std::char_traits<char>,class std::allocator<char> >,class 
> std::allocator<class std::basic_string<char,struct st
> d::char_traits<char>,class std::allocator<char> > > > const & __thiscall 
> itk::GDCMSeriesFileNames::GetSeriesUIDs(void)" 
> (?GetSeriesUIDs at GDCMSeriesFileNames@itk@@QAEABV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocato 
> <mailto:?GetSeriesUIDs at GDCMSeriesFileNames@itk@@QAEABV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocato>
> r at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@std@@XZ 
> <mailto:r at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@std@@XZ>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "protected: __thiscall itk::GDCMImageIO::GDCMImageIO(void)" 
> (??0GDCMImageIO at itk@@IAE at XZ <mailto:??0GDCMImageIO at itk@@IAE at XZ>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "protected: __thiscall 
> itk::GDCMSeriesFileNames::GDCMSeriesFileNames(void)" 
> (??0GDCMSeriesFileNames at itk@@IAE at XZ 
> <mailto:??0GDCMSeriesFileNames at itk@@IAE at XZ>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "public: void __thiscall 
> itk::GDCMSeriesFileNames::SetInputDirectory(class 
> std::basic_string<char,struct std::char_traits<char>,class 
> std::allocator<char> > const &)" (?SetIn
> putDirectory at GDCMSeriesFileNames@itk@@QAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z 
> <mailto:putDirectory at GDCMSeriesFileNames@itk@@QAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "public: void __thiscall 
> gdcm::SerieHelper::CreateDefaultUniqueSeriesIdentifier(void)" 
> (?CreateDefaultUniqueSeriesIdentifier at SerieHelper@gdcm@@QAEXXZ 
> <mailto:?CreateDefaultUniqueSeriesIdentifier at SerieHelper@gdcm@@QAEXXZ>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "public: void __thiscall 
> gdcm::SerieHelper::AddRestriction(unsigned short,unsigned short)" 
> (?AddRestriction at SerieHelper@gdcm@@QAEXGG at Z 
> <mailto:?AddRestriction at SerieHelper@gdcm@@QAEXGG at Z>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "protected: virtual void __thiscall 
> itk::ImageIORegion::PrintSelf(class std::basic_ostream<char,struct 
> std::char_traits<char> > &,class itk::Indent)const " (?PrintSelf at ImageI 
> <mailto:?PrintSelf at ImageI>
> ORegion at itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z 
> <mailto:ORegion at itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: 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::ImageIOReg
> ion const &)" 
> (??6itk@@YAAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@AAV12 at ABVImageIORegion@0@@Z 
> <mailto:??6itk@@YAAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@AAV12 at ABVImageIORegion@0@@Z>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "public: void __thiscall 
> itk::ImageIOBase::SetNumberOfDimensions(unsigned int)" 
> (?SetNumberOfDimensions at ImageIOBase@itk@@QAEXI at Z 
> <mailto:?SetNumberOfDimensions at ImageIOBase@itk@@QAEXI at Z>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "public: static class itk::SmartPointer<class itk::ImageIOBase> 
> __cdecl itk::ImageIOFactory::CreateImageIO(char const *,enum 
> itk::ImageIOFactory::FileModeType)" (?CreateImage
> IO at ImageIOFactory@itk@@SA?AV?$SmartPointer at VImageIOBase@itk@@@2 at PBDW4FileModeType@12@@Z 
> <mailto:IO at ImageIOFactory@itk@@SA?AV?$SmartPointer at VImageIOBase@itk@@@2 at PBDW4FileModeType@12@@Z>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "public: unsigned int __thiscall 
> itk::ImageIOBase::GetImageSizeInBytes(void)const " 
> (?GetImageSizeInBytes at ImageIOBase@itk@@QBEIXZ 
> <mailto:?GetImageSizeInBytes at ImageIOBase@itk@@QBEIXZ>)
> DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external 
> symbol "public: class std::basic_string<char,struct 
> std::char_traits<char>,class std::allocator<char> > __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 
> <mailto:?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>)
> Debug/DicomSeriesReadImageWrite2.exe : fatal error LNK1120: 13 
> unresolved externals
> Error executing link.exe.
> ALL_BUILD - 14 error(s), 0 warning(s)
> ---------------------------------------------------------------------------------------------
>  
> Could someone help me out with this error??
> Thanks
> Brian
>  
>    
> 
> ------------------------------------------------------------------------
> Get your own web address for just $1.99/1st yr < 
> http://us.rd.yahoo.com/evt=43290/*http://smallbusiness.yahoo.com/domains>. 
> We'll help. Yahoo! Small Business 
> <http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/>.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users




More information about the Insight-users mailing list