我在我的 MFC + vtk 项目中使用了 Visual Studio 2008。我收到如下链接错误:
vtkPBFEAView.obj : 警告 LNK4217: 本地定义符号 ?DrawDC@vtkMFCWindow@@QAEXPAVCDC@@@Z (public: void __thiscall vtkMFCWindow::DrawDC(class CDC *)) 在函数“受保护:虚拟 void __thiscall CvtkPBFEAView::OnDraw(类 CDC *)" (?OnDraw@CvtkPBFEAView@@MAEXPAVCDC@@@Z)
1>vtkMDIView.obj : 警告 LNK4049: 本地定义符号 ?DrawDC@vtkMFCWindow@@QAEXPAVCDC@@@Z (public: void __thiscall vtkMFCWindow::DrawDC(class CDC *)) 导入 1>vtkPBFEAView.obj : 警告 LNK4217: 本地定义符号 ??0vtkMFCWindow@@QAE@PAVCWnd@@@Z (public: __thiscall vtkMFCWindow::vtkMFCWindow(class CWnd *)) 导入函数“public: void __thiscall vtkPBFEAViewImpl::initialize(class CWnd *)” (?initialize@vtkPBFEAViewImpl @@QAEXPAVCWnd@@@Z)
1>vtkMDIView.obj : 警告 LNK4049: 本地定义符号 ??0vtkMFCWindow@@QAE@PAVCWnd@@@Z (public: __thiscall vtkMFCWindow::vtkMFCWindow(class CWnd *)) 导入 1>vtkPBFEAView.obj : 警告 LNK4217: 本地定义符号 ??1vtkMFCWindow@@UAE@XZ (public: virtual __thiscall vtkMFCWindow::~vtkMFCWindow(void)) 导入函数“public: virtual void * __thiscall vtkMFCWindow::`标量删除析构函数'(unsigned int)” (??_GvtkMFCWindow @@UAEPAXI@Z)
1>vtkMDIView.obj : 警告 LNK4217: 本地定义符号 ??1vtkMFCWindow@@UAE@XZ (public: virtual __thiscall vtkMFCWindow::~vtkMFCWindow(void)) 导入函数“public: void __thiscall vtkMDIViewImpl::adjust_contours(int,double ,double)" (?adjust_contours@vtkMDIViewImpl@@QAEXHNN@Z)
1>vtkMFCWindow.obj:错误 LNK2019:无法解析的外部符号“_ declspec(dllimport) const vtkMFCWindow::`vftable'”( _imp_??_7vtkMFCWindow@@6B@) 在函数“public: __thiscall vtkMFCWindow::vtkMFCWindow(class CWnd *)" (??0vtkMFCWindow@@QAE@PAVCWnd@@@Z)
谁能解释我这个错误的原因?
提前致谢。