[vtkusers] dicom reader link error...

Junior Pilato junior.pilato at gmail.com
Tue Sep 27 15:33:32 EDT 2005


Hi vtk users...

I'm trying to compile my application and accouring some problems...

I'm using vtk build on msys+mingw..


Does anybody can help me?

thanks..


My code:

///////////////////////////////////////

#include "vtkDICOMImageReader.h"
#include "vtkImageViewer.h"
#include "vtkRenderWindowInteractor.h"


int main()
{

vtkDICOMImageReader *reader = vtkDICOMImageReader::New();
reader->SetDirectoryName("/images");
reader->Update();

vtkImageViewer *viewer = vtkImageViewer::New();
viewer->SetInput(reader->GetOutput());
viewer->SetColorLevel(128);
viewer->SetColorWindow(255);
viewer->SetZSlice(45);

vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
iren->SetRenderWindow(viewer->GetRenderWindow());

viewer->Render();
iren->Start();

return 0;
}

/////////////////////////////////////////////

Error:

$ make
Linking CXX executable DicomTest.exe
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x33b):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMPa rserC1Ev'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x395):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMAp pHelperC1Ev'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x543):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMPa rserC1Ev'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x59d):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMAp pHelperC1Ev'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0xe7d):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMPa rser8OpenFileERKSs'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x1581):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMA ppHelper5ClearEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x1594):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser25ClearAllDICOMTagCallbacksEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x15df):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser8OpenFileERKSs'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x16bf):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser10ReadHeaderEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x1ad4):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMA ppHelper5ClearEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x2270):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser8OpenFileERKSs'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x2345):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser25ClearAllDICOMTagCallbacksEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x238d):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser10ReadHeaderEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x2772):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMA
ppHelper36GetImagePositionPatientFilenamePairsERSt6vectorISt4pairIfSsESaIS2_EEb'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x334c):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser25ClearAllDICOMTagCallbacksEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x33a1):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser8OpenFileERKSs'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x344c):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMA ppHelper5ClearEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x34bf):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser10ReadHeaderEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x34ee):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMA
ppHelper12GetImageDataERPvRN11DICOMParser7VRTypesERm'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x3926):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser25ClearAllDICOMTagCallbacksEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x3943):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMA ppHelper5ClearEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x3df9):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser8OpenFileERKSs'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x3f37):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN11DICOMP arser10ReadHeaderEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x3f70):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMA
ppHelper12GetImageDataERPvRN11DICOMParser7VRTypesERm'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x4153):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMA ppHelper24RescaledImageDataIsFloatEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x4169):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMA ppHelper25RescaledImageDataIsSignedEv'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)( .text+0x4612):vtkDICOMImageReader.cxx: undefined
reference to `_imp___ZN14DICOMA
ppHelper36GetImagePositionPatientFilenamePairsERSt6vectorISt4pairIfSsESaIS2_EEb'
E:/users/Junior/VTK_cvs/VTK_build_tests/bin/libvtkIO.a(
vtkDICOMImageReader.obj)(
.text$_ZN11DICOMParser11IsDICOMFileEv[DICOMParser::IsDICOMFile()]+0x28):vtkDICOM
ImageReader.cxx: undefined reference to
`_imp___ZN11DICOMParser11IsDICOMFileEP9D ICOMFile'
collect2: ld returned 1 exit status
make[2]: *** [DicomTest.exe] Error 1
make[1]: *** [CMakeFiles/DicomTest.dir/all] Error 2
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050927/c629f0b1/attachment.htm>


More information about the vtkusers mailing list