[ITK] [ITK-users] fatal error LNK1120: 33 unresolved externals

Abdelkhalek Bakkari bakkari.abdelkhalek at hotmail.fr
Tue Jan 26 13:17:15 EST 2016


Dear Insight-users,
I tried to build my application using Visual Studio 2010. But, some errors appear during running.
Creating library C:/Application_26_01_2016/Build/Release/main.lib and object C:/Application_26_01_2016/Build/Release/main.exp2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkResliceImageViewer * __cdecl vtkResliceImageViewer::New(void)" (__imp_?New at vtkResliceImageViewer@@SAPAV1 at XZ) referenced in function "public: static class vtkSmartPointer<class vtkResliceImageViewer> __cdecl vtkSmartPointer<class vtkResliceImageViewer>::New(void)" (?New@?$vtkSmartPointer at VvtkResliceImageViewer@@@@SA?AV1 at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkImageLuminance * __cdecl vtkImageLuminance::New(void)" (__imp_?New at vtkImageLuminance@@SAPAV1 at XZ) referenced in function "public: static class vtkSmartPointer<class vtkImageLuminance> __cdecl vtkSmartPointer<class vtkImageLuminance>::New(void)" (?New@?$vtkSmartPointer at VvtkImageLuminance@@@@SA?AV1 at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)" (__imp_?New at vtkRenderWindow@@SAPAV1 at XZ) referenced in function "public: static class vtkSmartPointer<class vtkRenderWindow> __cdecl vtkSmartPointer<class vtkRenderWindow>::New(void)" (?New@?$vtkSmartPointer at VvtkRenderWindow@@@@SA?AV1 at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderer * __cdecl vtkRenderer::New(void)" (__imp_?New at vtkRenderer@@SAPAV1 at XZ) referenced in function "public: static class vtkSmartPointer<class vtkRenderer> __cdecl vtkSmartPointer<class vtkRenderer>::New(void)" (?New@?$vtkSmartPointer at VvtkRenderer@@@@SA?AV1 at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderWindowInteractor * __cdecl vtkRenderWindowInteractor::New(void)" (__imp_?New at vtkRenderWindowInteractor@@SAPAV1 at XZ) referenced in function "public: static class vtkSmartPointer<class vtkRenderWindowInteractor> __cdecl vtkSmartPointer<class vtkRenderWindowInteractor>::New(void)" (?New@?$vtkSmartPointer at VvtkRenderWindowInteractor@@@@SA?AV1 at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkSmartVolumeMapper * __cdecl vtkSmartVolumeMapper::New(void)" (__imp_?New at vtkSmartVolumeMapper@@SAPAV1 at XZ) referenced in function "public: static class vtkSmartPointer<class vtkSmartVolumeMapper> __cdecl vtkSmartPointer<class vtkSmartVolumeMapper>::New(void)" (?New@?$vtkSmartPointer at VvtkSmartVolumeMapper@@@@SA?AV1 at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkVolumeProperty * __cdecl vtkVolumeProperty::New(void)" (__imp_?New at vtkVolumeProperty@@SAPAV1 at XZ) referenced in function "public: static class vtkSmartPointer<class vtkVolumeProperty> __cdecl vtkSmartPointer<class vtkVolumeProperty>::New(void)" (?New@?$vtkSmartPointer at VvtkVolumeProperty@@@@SA?AV1 at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkVolume * __cdecl vtkVolume::New(void)" (__imp_?New at vtkVolume@@SAPAV1 at XZ) referenced in function "public: static class vtkSmartPointer<class vtkVolume> __cdecl vtkSmartPointer<class vtkVolume>::New(void)" (?New@?$vtkSmartPointer at VvtkVolume@@@@SA?AV1 at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkImageViewer2 * __cdecl vtkImageViewer2::New(void)" (__imp_?New at vtkImageViewer2@@SAPAV1 at XZ) referenced in function "private: void __thiscall MainWindow::prepareImageViews(void)" (?prepareImageViews at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkSmartVolumeMapper::SetRequestedRenderModeToRayCast(void)" (__imp_?SetRequestedRenderModeToRayCast at vtkSmartVolumeMapper@@QAEXXZ) referenced in function "private: void __thiscall MainWindow::on_button_3d_clicked(void)" (?on_button_3d_clicked at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkSmartVolumeMapper::SetRequestedRenderModeToRayCastAndTexture(void)" (__imp_?SetRequestedRenderModeToRayCastAndTexture at vtkSmartVolumeMapper@@QAEXXZ) referenced in function "private: void __thiscall MainWindow::on_button_3d_clicked(void)" (?on_button_3d_clicked at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::ResetCamera(void)" (__imp_?ResetCamera at vtkRenderer@@QAEXXZ) referenced in function "private: void __thiscall MainWindow::on_button_3d_clicked(void)" (?on_button_3d_clicked at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkVolume::SetProperty(class vtkVolumeProperty *)" (__imp_?SetProperty at vtkVolume@@QAEXPAVvtkVolumeProperty@@@Z) referenced in function "private: void __thiscall MainWindow::on_button_3d_clicked(void)" (?on_button_3d_clicked at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkVolume::SetMapper(class vtkAbstractVolumeMapper *)" (__imp_?SetMapper at vtkVolume@@QAEXPAVvtkAbstractVolumeMapper@@@Z) referenced in function "private: void __thiscall MainWindow::on_button_3d_clicked(void)" (?on_button_3d_clicked at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkVolumeProperty::SetColor(int,class vtkColorTransferFunction *)" (__imp_?SetColor at vtkVolumeProperty@@QAEXHPAVvtkColorTransferFunction@@@Z) referenced in function "private: void __thiscall MainWindow::on_button_3d_clicked(void)" (?on_button_3d_clicked at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkVolumeProperty::SetScalarOpacity(int,class vtkPiecewiseFunction *)" (__imp_?SetScalarOpacity at vtkVolumeProperty@@QAEXHPAVvtkPiecewiseFunction@@@Z) referenced in function "private: void __thiscall MainWindow::on_button_3d_clicked(void)" (?on_button_3d_clicked at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkVolumeProperty::ShadeOff(int)" (__imp_?ShadeOff at vtkVolumeProperty@@QAEXH at Z) referenced in function "private: void __thiscall MainWindow::on_button_3d_clicked(void)" (?on_button_3d_clicked at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkVolumeMapper::SetBlendModeToComposite(void)" (__imp_?SetBlendModeToComposite at vtkVolumeMapper@@QAEXXZ) referenced in function "private: void __thiscall MainWindow::on_button_3d_clicked(void)" (?on_button_3d_clicked at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)" (__imp_?SetRenderWindow at vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z) referenced in function "private: void __thiscall MainWindow::on_button_3d_clicked(void)" (?on_button_3d_clicked at MainWindow@@AAEXXZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void * __thiscall vtkImageExport::GetCallbackUserData(void)" (__imp_?GetCallbackUserData at vtkImageExport@@QAEPAXXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void * (__cdecl*__thiscall vtkImageExport::GetBufferPointerCallback(void)const )(void *)" (__imp_?GetBufferPointerCallback at vtkImageExport@@QBEP6APAXPAX at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int * (__cdecl*__thiscall vtkImageExport::GetDataExtentCallback(void)const )(void *)" (__imp_?GetDataExtentCallback at vtkImageExport@@QBEP6APAHPAX at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void (__cdecl*__thiscall vtkImageExport::GetUpdateDataCallback(void)const )(void *)" (__imp_?GetUpdateDataCallback at vtkImageExport@@QBEP6AXPAX at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void (__cdecl*__thiscall vtkImageExport::GetPropagateUpdateExtentCallback(void)const )(void *,int *)" (__imp_?GetPropagateUpdateExtentCallback at vtkImageExport@@QBEP6AXPAXPAH at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int (__cdecl*__thiscall vtkImageExport::GetNumberOfComponentsCallback(void)const )(void *)" (__imp_?GetNumberOfComponentsCallback at vtkImageExport@@QBEP6AHPAX at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * (__cdecl*__thiscall vtkImageExport::GetScalarTypeCallback(void)const )(void *)" (__imp_?GetScalarTypeCallback at vtkImageExport@@QBEP6APBDPAX at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: double * (__cdecl*__thiscall vtkImageExport::GetOriginCallback(void)const )(void *)" (__imp_?GetOriginCallback at vtkImageExport@@QBEP6APANPAX at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: double * (__cdecl*__thiscall vtkImageExport::GetSpacingCallback(void)const )(void *)" (__imp_?GetSpacingCallback at vtkImageExport@@QBEP6APANPAX at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int * (__cdecl*__thiscall vtkImageExport::GetWholeExtentCallback(void)const )(void *)" (__imp_?GetWholeExtentCallback at vtkImageExport@@QBEP6APAHPAX at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int (__cdecl*__thiscall vtkImageExport::GetPipelineModifiedCallback(void)const )(void *)" (__imp_?GetPipelineModifiedCallback at vtkImageExport@@QBEP6AHPAX at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void (__cdecl*__thiscall vtkImageExport::GetUpdateInformationCallback(void)const )(void *)" (__imp_?GetUpdateInformationCallback at vtkImageExport@@QBEP6AXPAX at ZXZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkImageExport * __cdecl vtkImageExport::New(void)" (__imp_?New at vtkImageExport@@SAPAV1 at XZ) referenced in function "protected: __thiscall itk::VTKImageToImageFilter<class itk::Image<short,3> >::VTKImageToImageFilter<class itk::Image<short,3> >(void)" (??0?$VTKImageToImageFilter at V?$Image at F$02 at itk@@@itk@@IAE at XZ)2>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkImageImport * __cdecl vtkImageImport::New(void)" (__imp_?New at vtkImageImport@@SAPAV1 at XZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<class itk::RGBPixel<unsigned char>,3> >::ImageToVTKImageFilter<class itk::Image<class itk::RGBPixel<unsigned char>,3> >(void)" (??0?$ImageToVTKImageFilter at V?$Image at V?$RGBPixel at E@itk@@$02 at itk@@@itk@@IAE at XZ)2>C:\Application_26_01_2016\Build\Release\main.exe : fatal error LNK1120: 33 unresolved externals2>2>Build FAILED.


Please, help me to solve these problems.

Abdelkhalek BakkariPh.D candidate in Computer ScienceInstitute of Applied Computer ScienceLodz University of Technology, Poland

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160126/885df20a/attachment-0001.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list