vtk问题,解决马上结帖!!!(up也有分)
我装了vtk4.2,lib,include等都已设置好,在vs中运行D:\Program Files\vtk42\Examples\GUI\Win32\vtkMFC中的vtkSDI,为什么有这样的错误?
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkCubeAxesActor2D * __cdecl vtkCubeAxesActor2D::New(void)" (__imp_?New@vtkCubeAxesActor2D@@SAPAV1@XZ) ,该符号在函数 "protected: __thiscall CVtkSDIView::CVtkSDIView(void)" (??0CVtkSDIView@@IAE@XZ) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkGlyph3D * __cdecl vtkGlyph3D::New(void)" (__imp_?New@vtkGlyph3D@@SAPAV1@XZ) ,该符号在函数 "protected: __thiscall CVtkSDIView::CVtkSDIView(void)" (??0CVtkSDIView@@IAE@XZ) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkConeSource * __cdecl vtkConeSource::New(void)" (__imp_?New@vtkConeSource@@SAPAV1@XZ) ,该符号在函数 "protected: __thiscall CVtkSDIView::CVtkSDIView(void)" (??0CVtkSDIView@@IAE@XZ) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkActor * __cdecl vtkActor::New(void)" (__imp_?New@vtkActor@@SAPAV1@XZ) ,该符号在函数 "protected: __thiscall CVtkSDIView::CVtkSDIView(void)" (??0CVtkSDIView@@IAE@XZ) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)" (__imp_?New@vtkPolyDataMapper@@SAPAV1@XZ) ,该符号在函数 "protected: __thiscall CVtkSDIView::CVtkSDIView(void)" (??0CVtkSDIView@@IAE@XZ) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkElevationFilter * __cdecl vtkElevationFilter::New(void)" (__imp_?New@vtkElevationFilter@@SAPAV1@XZ) ,该符号在函数 "protected: __thiscall CVtkSDIView::CVtkSDIView(void)" (??0CVtkSDIView@@IAE@XZ) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkSphereSource * __cdecl vtkSphereSource::New(void)" (__imp_?New@vtkSphereSource@@SAPAV1@XZ) ,该符号在函数 "protected: __thiscall CVtkSDIView::CVtkSDIView(void)" (??0CVtkSDIView@@IAE@XZ) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkWin32RenderWindowInteractor * __cdecl vtkWin32RenderWindowInteractor::New(void)" (__imp_?New@vtkWin32RenderWindowInteractor@@SAPAV1@XZ) ,该符号在函数 "protected: __thiscall CVtkSDIView::CVtkSDIView(void)" (??0CVtkSDIView@@IAE@XZ) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkWin32OpenGLRenderWindow * __cdecl vtkWin32OpenGLRenderWindow::New(void)" (__imp_?New@vtkWin32OpenGLRenderWindow@@SAPAV1@XZ) ,该符号在函数 "protected: __thiscall CVtkSDIView::CVtkSDIView(void)" (??0CVtkSDIView@@IAE@XZ) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class vtkRenderer * __cdecl vtkRenderer::New(void)" (__imp_?New@vtkRenderer@@SAPAV1@XZ) ,该符号在函数 "protected: __thiscall CVtkSDIView::CVtkSDIView(void)" (??0CVtkSDIView@@IAE@XZ) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall vtkWin32OpenGLRenderWindow::ResumeScreenRendering(void)" (__imp_?ResumeScreenRendering@vtkWin32OpenGLRenderWindow@@QAEXXZ) ,该符号在函数 "public: virtual void __thiscall CVtkSDIView::OnDraw(class CDC *)" (?OnDraw@CVtkSDIView@@UAEXPAVCDC@@@Z) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: struct HDC__ * __thiscall vtkWin32OpenGLRenderWindow::GetMemoryDC(void)" (__imp_?GetMemoryDC@vtkWin32OpenGLRenderWindow@@QAEPAUHDC__@@XZ) ,该符号在函数 "public: virtual void __thiscall CVtkSDIView::OnDraw(class CDC *)" (?OnDraw@CVtkSDIView@@UAEXPAVCDC@@@Z) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall vtkWin32OpenGLRenderWindow::SetupMemoryRendering(int,int,struct HDC__ *)" (__imp_?SetupMemoryRendering@vtkWin32OpenGLRenderWindow@@QAEXHHPAUHDC__@@@Z) ,该符号在函数 "public: virtual void __thiscall CVtkSDIView::OnDraw(class CDC *)" (?OnDraw@CVtkSDIView@@UAEXPAVCDC@@@Z) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall vtkRenderer::ResetCamera(void)" (__imp_?ResetCamera@vtkRenderer@@QAEXXZ) ,该符号在函数 "public: virtual void __thiscall CVtkSDIView::OnDraw(class CDC *)" (?OnDraw@CVtkSDIView@@UAEXPAVCDC@@@Z) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)" (__imp_?SetRenderWindow@vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z) ,该符号在函数 "public: int __thiscall CVtkSDIView::OnCreate(struct tagCREATESTRUCTA *)" (?OnCreate@CVtkSDIView@@QAEHPAUtagCREATESTRUCTA@@@Z) 中被引用
VtkSDIView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) long __stdcall vtkHandleMessage2(struct HWND__ *,unsigned int,unsigned int,long,class vtkWin32RenderWindowInteractor *)" (__imp_?vtkHandleMessage2@@YGJPAUHWND__@@IIJPAVvtkWin32RenderWindowInteractor@@@Z) ,该符号在函数 "protected: virtual long __thiscall CVtkSDIView::WindowProc(unsigned int,unsigned int,long)" (?WindowProc@CVtkSDIView@@MAEJIIJ@Z) 中被引用
...
Debug/VtkSDI.exe : fatal error LNK1120: 27 个无法解析的外部命令
怎么解决?