[Insight-users] Errors

Brian Chacko brianchacko at yahoo.com
Wed Sep 20 05:40:37 EDT 2006


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?
$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
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)
DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external symbol "protected: __thiscall itk::GDCMSeriesFileNames::GDCMSeriesFileNames(void)" (??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)
DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external symbol "public: void __thiscall gdcm::SerieHelper::CreateDefaultUniqueSeriesIdentifier(void)" (?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)
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
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)
DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external symbol "public: void __thiscall itk::ImageIOBase::SetNumberOfDimensions(unsigned int)" (?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)
DicomSeriesReadImageWrite2.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall itk::ImageIOBase::GetImageSizeInBytes(void)const " (?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)
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. We'll help. Yahoo! Small Business.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060920/13c26cc3/attachment.htm


More information about the Insight-users mailing list