[Insight-users] linking error with itkDICOMSeriesFileNames
soumen dey
rahul933 at yahoo . com
Thu, 25 Sep 2003 04:44:47 -0700 (PDT)
--0-1796756647-1064490287=:90458
Content-Type: text/plain; charset=us-ascii
Hi All,
I have encountered some linking problem while working with itkDICOMSeriesFileNames.
the include files are....
#include "itkDICOMImageIO2Factory.h"
#include "itkDICOMImageIO2.h"
#include "itkImageSeriesReader.h"
#include "itkDICOMSeriesFilenames.h"
#include "vtkImageViewer.h"
#include "vtkRenderWindowInteractor.h"
#include "itkImageToVTKImageFilter.h"
my cmakelist looks like...
PROJECT(itkvtk)
FIND_PACKAGE(ITK)
IF (ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
ENDIF(ITK_FOUND)
FIND_PACKAGE(VTK)
IF(VTK_FOUND)
INCLUDE(${VTK_USE_FILE})
ENDIF(VTK_FOUND)
ADD_EXECUTABLE(ImageReadCastWrite ImageReadCastWrite2.cxx
c:\\soumen\\itk\\itksource\\Code\\io\\itkDICOMImageSeriesTest.cxx
c:\\soumen\\itk\\itksource\\code\\BasicFilters\\itkImageToVTKImageFilter.txx
c:\\soumen\\itk\\itksource\\Code\\BasicFilters\\itkVTKImageExport.txx
c:\\soumen\\itk\\itksource\\Code\\BasicFilters\\itkVTKImageExportBase.cxx
)
TARGET_LINK_LIBRARIES(ImageReadCastWrite ${ITK_LIBRARIES} ${VTK_LIBRARIES}
VTKZlib
VTKGraphics
VTKRendering
VTKImaging
VTKFiltering
VTKCommon
VTKIO
ITKDicomParser
)
and the linking error are....
Linking...
Creating library Debug/ImageReadCastWrite.lib and object Debug/ImageReadCastWrite.exp
ImageReadCastWrite2.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 std::char
_traits<char>,class std::allocator<char> > > > const & __thiscall itk::DICOMSeriesFileNames::GetFileNames(void)" (?GetFileNames at DICOMSeriesFileNames@itk@@QAEABV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$ba
sic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@std@@XZ)
itkDICOMImageSeriesTest.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 std::
char_traits<char>,class std::allocator<char> > > > const & __thiscall itk::DICOMSeriesFileNames::GetFileNames(void)" (?GetFileNames at DICOMSeriesFileNames@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@@XZ)
ImageReadCastWrite2.obj : error LNK2001: unresolved external symbol "protected: __thiscall itk::DICOMSeriesFileNames::DICOMSeriesFileNames(void)" (??0DICOMSeriesFileNames at itk@@IAE at XZ)
itkDICOMImageSeriesTest.obj : error LNK2001: unresolved external symbol "protected: __thiscall itk::DICOMSeriesFileNames::DICOMSeriesFileNames(void)" (??0DICOMSeriesFileNames at itk@@IAE at XZ)
Debug/ImageReadCastWrite.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
ImageReadCastWrite.exe - 5 error(s), 0 warning(s)
will anybody plz help me out.
Rahul
---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
--0-1796756647-1064490287=:90458
Content-Type: text/html; charset=us-ascii
<DIV>Hi All,</DIV>
<DIV> </DIV>
<DIV>I have encountered some linking problem while working with itkDICOMSeriesFileNames. </DIV>
<DIV> </DIV>
<DIV>the include files are....</DIV>
<DIV> </DIV>
<DIV>#include "itkDICOMImageIO2Factory.h"<BR>#include "itkDICOMImageIO2.h"<BR>#include "itkImageSeriesReader.h"<BR>#include "itkDICOMSeriesFilenames.h"</DIV>
<DIV>#include "vtkImageViewer.h"<BR>#include "vtkRenderWindowInteractor.h"</DIV>
<DIV>#include "itkImageToVTKImageFilter.h"<BR></DIV>
<DIV>my cmakelist looks like...</DIV>
<DIV> </DIV>
<DIV>PROJECT(itkvtk)<BR>FIND_PACKAGE(ITK)<BR>IF (ITK_FOUND)<BR> INCLUDE(${ITK_USE_FILE})<BR>ENDIF(ITK_FOUND)<BR>FIND_PACKAGE(VTK)<BR>IF(VTK_FOUND)<BR> INCLUDE(${VTK_USE_FILE})<BR>ENDIF(VTK_FOUND)</DIV>
<DIV>ADD_EXECUTABLE(ImageReadCastWrite ImageReadCastWrite2.cxx <BR>c:\\soumen\\itk\\itksource\\Code\\io\\itkDICOMImageSeriesTest.cxx<BR>c:\\soumen\\itk\\itksource\\code\\BasicFilters\\itkImageToVTKImageFilter.txx<BR>c:\\soumen\\itk\\itksource\\Code\\BasicFilters\\itkVTKImageExport.txx <BR>c:\\soumen\\itk\\itksource\\Code\\BasicFilters\\itkVTKImageExportBase.cxx<BR>)<BR>TARGET_LINK_LIBRARIES(ImageReadCastWrite ${ITK_LIBRARIES} ${VTK_LIBRARIES}<BR>VTKZlib <BR>VTKGraphics <BR>VTKRendering <BR>VTKImaging <BR>VTKFiltering <BR>VTKCommon <BR>VTKIO <BR>ITKDicomParser <BR>)</DIV>
<DIV> </DIV>
<DIV>and the linking error are....</DIV>
<DIV> </DIV>
<DIV>Linking...<BR> Creating library Debug/ImageReadCastWrite.lib and object Debug/ImageReadCastWrite.exp<BR>ImageReadCastWrite2.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 std::char<BR>_traits<char>,class std::allocator<char> > > > const & __thiscall itk::DICOMSeriesFileNames::GetFileNames(void)" (?GetFileNames at DICOMSeriesFileNames@itk@@QAEABV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$ba<BR>sic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@std@@XZ)<BR>itkDICOMImageSeriesTest.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 std::<BR>char_traits<char>,class std::allocator<char> > > > const & __thiscall itk::DICOMSeriesFileNames::GetFileNames(void)" (?GetFileNames at DICOMSeriesFileNames@itk@@QAEABV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V<BR>?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@std@@XZ)<BR>ImageReadCastWrite2.obj : error LNK2001: unresolved external symbol "protected: __thiscall itk::DICOMSeriesFileNames::DICOMSeriesFileNames(void)" (??0DICOMSeriesFileNames at itk@@IAE at XZ)<BR>itkDICOMImageSeriesTest.obj : error LNK2001: unresolved external symbol "protected: __thiscall itk::DICOMSeriesFileNames::DICOMSeriesFileNames(void)" (??0DICOMSeriesFileNames at itk@@IAE at XZ)<BR>Debug/ImageReadCastWrite.exe : fatal error LNK1120: 2 unresolved externals<BR>Error executing link.exe.</DIV>
<DIV>ImageReadCastWrite.exe - 5 error(s), 0 warning(s)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>will anybody plz help me out.</DIV>
<DIV> </DIV>
<DIV>Rahul<BR><BR></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://shopping . yahoo . com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3Atext%2Csec%3Amail">The New Yahoo! Shopping</a> - with improved product search
--0-1796756647-1064490287=:90458--