[Insight-users] ITK $VTK + MFC -> VTK & MFC -> 220 error(s), 244 warning(s)

David Cole david.cole at kitware.com
Fri Jan 25 12:23:55 EST 2008


The library name "uaxfcwd.lib" indicates that you are trying to link to the
unicode version of the MFC libraries... Have you tried linking in the
non-unicode MFC libs?

Have you turned on the options VTK_USE_GUISUPPORT and VTK_USE_MFC?

Have you compiled the VTK Examples?

Have you looked at VTK/Examples/GUI/Win32/SampleMFC?
VTK/Examples/GUI/Win32/vtkMFC?


Compare your own CMakeLists.txt file to the ones found down in the Examples
directory and see what's different...


Hope this helps,
David


On 1/25/08, Iryna Pavlyshak <iryna at andrew.cmu.edu> wrote:
>
> Hello All,
>
> There is a conflict when using MFC to code written with ITK and VTK,
> Does somebody have any idea, what may cause it?
>
>
> 1>uafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol
> ___wargv
> 1>uafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol
> ___argc
> 1>vtkCommon.lib(vtkPoints.obj) : error LNK2019: unresolved external
> symbol "__declspec(dllimport) public: class
> std::basic_ostream<char,struct std::char_traits<char> > & __thiscall
> std::basic_ostream<char,struct std::char_traits<char>
> >::operator<<(double)"
> (__imp_??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QAEAAV01 at N@Z)
> referenced in function "public: virtual void __thiscall
> vtkPoints::PrintSelf(class std::basic_ostream<char,struct
> std::char_traits<char> > &,class vtkIndent)"
> (?PrintSelf at vtkPoints@@UAEXAAV?$basic_ostream at DU?$char_traits at D@std@@@st
> d@@VvtkIndent@@@Z)
> ....................
> ....................
> ....................
> 1>vtkCommon.lib(vtkDebugLeaks.obj) : error LNK2019: unresolved external
> symbol "__declspec(dllimport) public: class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > & __thiscall std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> >::operator+=(char
> const *)"
> (__imp_??Y?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@Q
> AEAAV01 at PBD@Z) referenced in function "public: void __thiscall
> vtkDebugLeaksHashNode::Print(class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> > &)"
> (?Print at vtkDebugLeaksHashNode@@QAEXAAV?$basic_string at DU?$char_traits at D@s
> td@@V?$allocator at D@2@@std@@@Z)
>
> thanks,
> Iryna
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20080125/dc59936e/attachment.htm


More information about the Insight-users mailing list