[vtk-developers] Linking error mfc example

Berk Geveci berk.geveci at kitware.com
Wed Jun 3 09:09:40 EDT 2009


Please keep this issue on the VTK users list. The developers list is
for issues related to the development of VTK itself and this is not
the appropriate topic for it. Thanks.

-berk

On Wed, Jun 3, 2009 at 7:14 AM, usman ali <usman1266 at yahoo.com> wrote:
>
> when i run mfc sdi example code in vs2005 i got this error can any body
> solve this issue thanks in advance
>
>
> Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport)
> public: void __thiscall vtkMFCWindow::DrawDC(class CDC *)"
> (__imp_?DrawDC at vtkMFCWindow@@QAEXPAVCDC@@@Z) referenced in function "public:
> virtual void __thiscall CvtkSDIView::OnDraw(class CDC *)"
> (?OnDraw at CvtkSDIView@@UAEXPAVCDC@@@Z) vtksdiView.obj
> Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport)
> public: __thiscall vtkMFCWindow::vtkMFCWindow(class CWnd *)"
> (__imp_??0vtkMFCWindow@@QAE at PAVCWnd@@@Z) referenced in function "public:
> virtual void __thiscall CvtkSDIView::OnInitialUpdate(void)"
> (?OnInitialUpdate at CvtkSDIView@@UAEXXZ) vtksdiView.obj
> Error 3 error LNK2001: unresolved external symbol "public: virtual void
> __thiscall vtkMFCWindow::AssertValid(void)const "
> (?AssertValid at vtkMFCWindow@@UBEXXZ) vtksdiView.obj
> Error 4 error LNK2001: unresolved external symbol "public: virtual void
> __thiscall vtkMFCWindow::Dump(class CDumpContext &)const "
> (?Dump at vtkMFCWindow@@UBEXAAVCDumpContext@@@Z) vtksdiView.obj
> Error 5 error LNK2001: unresolved external symbol "protected: virtual struct
> AFX_MSGMAP const * __thiscall vtkMFCWindow::GetMessageMap(void)const "
> (?GetMessageMap at vtkMFCWindow@@MBEPBUAFX_MSGMAP@@XZ) vtksdiView.obj
> Error 6 error LNK2001: unresolved external symbol "public: virtual void
> __thiscall vtkMFCWindow::SetRenderWindow(class vtkWin32OpenGLRenderWindow
> *)"
> (?SetRenderWindow at vtkMFCWindow@@UAEXPAVvtkWin32OpenGLRenderWindow@@@Z) vtksdiView.obj
> Error 7 error LNK2001: unresolved external symbol "public: virtual class
> vtkWin32OpenGLRenderWindow * __thiscall vtkMFCWindow::GetRenderWindow(void)"
> (?GetRenderWindow at vtkMFCWindow@@UAEPAVvtkWin32OpenGLRenderWindow@@XZ) vtksdiView.obj
> Error 8 error LNK2001: unresolved external symbol "public: virtual class
> vtkRenderWindowInteractor * __thiscall vtkMFCWindow::GetInteractor(void)"
> (?GetInteractor at vtkMFCWindow@@UAEPAVvtkRenderWindowInteractor@@XZ) vtksdiView.obj
> Error 9 error LNK2019: unresolved external symbol "__declspec(dllimport)
> public: virtual __thiscall vtkMFCWindow::~vtkMFCWindow(void)"
> (__imp_??1vtkMFCWindow@@UAE at XZ) referenced in function "public: virtual void
> * __thiscall vtkMFCWindow::`scalar deleting destructor'(unsigned int)"
> (??_GvtkMFCWindow@@UAEPAXI at Z) vtksdiView.obj
> Error 10 fatal error LNK1120: 9 unresolved externals I:\LUMS Project
> Data\Code\vtksdi\Debug\vtksdi.exe
>
>
> ----------------------------------------------------------------------
> Regards,
> Usman Ali
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>



More information about the vtk-developers mailing list