[vtkusers] Linking error mfc example

David Doria daviddoria at gmail.com
Wed Jun 3 07:24:24 EDT 2009


On Wed, Jun 3, 2009 at 7:04 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<http://us.mc551.mail.yahoo.com/mc/compose?to=__imp_&DrawDC@vtkMFCWindow@@QAEXPAVCDC@@@Z>)
> referenced in function "public: virtual void __thiscall
> CvtkSDIView::OnDraw(class CDC *)" (?OnDraw at CvtkSDIView@@UAEXPAVCDC@@@Z<http://us.mc551.mail.yahoo.com/mc/compose?to=&OnDraw@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<http://us.mc551.mail.yahoo.com/mc/compose?to=__imp_&?0vtkMFCWindow@@QAE@PAVCWnd@@@Z>)
> referenced in function "public: virtual void __thiscall
> CvtkSDIView::OnInitialUpdate(void)" (?OnInitialUpdate at CvtkSDIView@@UAEXXZ<http://us.mc551.mail.yahoo.com/mc/compose?to=&OnInitialUpdate@CvtkSDIView@@UAEXXZ>
> ) vtksdiView.obj
> Error 3 error LNK2001: unresolved external symbol "public: virtual void
> __thiscall vtkMFCWindow::AssertValid(void)const " (
> ?AssertValid at vtkMFCWindow@@UBEXXZ<http://us.mc551.mail.yahoo.com/mc/compose?to=&AssertValid@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<http://us.mc551.mail.yahoo.com/mc/compose?to=&Dump@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<http://us.mc551.mail.yahoo.com/mc/compose?to=&GetMessageMap@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<http://us.mc551.mail.yahoo.com/mc/compose?to=&SetRenderWindow@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<http://us.mc551.mail.yahoo.com/mc/compose?to=&GetRenderWindow@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<http://us.mc551.mail.yahoo.com/mc/compose?to=&GetInteractor@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<http://us.mc551.mail.yahoo.com/mc/compose?to=__imp_&?1vtkMFCWindow@@UAE@XZ>)
> referenced in function "public: virtual void * __thiscall
> vtkMFCWindow::`scalar deleting destructor'(unsigned int)" (
> ??_GvtkMFCWindow@@UAEPAXI at Z<http://us.mc551.mail.yahoo.com/mc/compose?to=&?_GvtkMFCWindow@@UAEPAXI@Z>
> ) vtksdiView.obj
> Error 10 fatal error LNK1120: 9 unresolved externals I:\LUMS Project
> Data\Code\vtksdi\Debug\vtksdi.exe
>
>
> ----------------------------------------------------------------------
> Regards,
> Usman Ali
>  <http://us.mc551.mail.yahoo.com/mc/compose?to=islamicsoft@gmail.com>
>
>
>
Which libraries are you linking to?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090603/2bdc9612/attachment.htm>


More information about the vtkusers mailing list