hi,<br>I want to connect itk to vtk. I used the guidline mentioned in tutorial II at the itk website. The following is part of the code i use:<br><br>#include "itkImageToVTKImageFilter.h"<br>//other includes...<br>
<br>//some code here...<br><br>typedef itk::VTKImageExport<ImageType3D> ExporterFilterType;<br>ExporterFilterType::Pointer m_Exporter = ExporterFilterType::New();<br><br>//some code here...<br><br>when i compile i get the following errors:<br>
Error 1 error LNK2001: unresolved external symbol "protected: __thiscall itk::VTKImageExportBase::VTKImageExportBase(void)" (??0VTKImageExportBase@itk@@IAE@XZ) itktester.obj itktester<br>Error 2 error LNK2001: unresolved external symbol "protected: virtual void __thiscall itk::VTKImageExportBase::PrintSelf(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const " (?PrintSelf@VTKImageExportBase@itk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z) itktester.obj itktester<br>
Error 3 error LNK2001: unresolved external symbol "protected: virtual void __thiscall itk::VTKImageExportBase::UpdateInformationCallback(void)" (?UpdateInformationCallback@VTKImageExportBase@itk@@MAEXXZ) itktester.obj itktester<br>
Error 4 error LNK2001: unresolved external symbol "protected: virtual int __thiscall itk::VTKImageExportBase::PipelineModifiedCallback(void)" (?PipelineModifiedCallback@VTKImageExportBase@itk@@MAEHXZ) itktester.obj itktester<br>
Error 5 error LNK2001: unresolved external symbol "protected: virtual void __thiscall itk::VTKImageExportBase::UpdateDataCallback(void)" (?UpdateDataCallback@VTKImageExportBase@itk@@MAEXXZ) itktester.obj itktester<br>
Error 6 fatal error LNK1120: 5 unresolved externals D:\c++ codes\itktester\Release\itktester.exe itktester<br><br>p.s. The project name is called itktester.<br><br>If i remove the following line i no longer get these errors: <br>
ExporterFilterType::Pointer m_Exporter = ExporterFilterType::New();<br><br>I am using itk 3.6, vtk 5.0.2, visual studio 2008 sp1.<br><br>Any help will be appreciated.<br><br>