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?<br><br>Have you turned on the options VTK_USE_GUISUPPORT and VTK_USE_MFC?<br>
<br>Have you compiled the VTK Examples?<br><br>Have you looked at VTK/Examples/GUI/Win32/SampleMFC?<br>VTK/Examples/GUI/Win32/vtkMFC?<br><br><br>Compare your own CMakeLists.txt file to the ones found down in the Examples directory and see what's different...<br>
<br><br>Hope this helps,<br>David<br><br><br><div><span class="gmail_quote">On 1/25/08, <b class="gmail_sendername">Iryna Pavlyshak</b> <<a href="mailto:iryna@andrew.cmu.edu">iryna@andrew.cmu.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello All,<br><br>There is a conflict when using MFC to code written with ITK and VTK,<br>Does somebody have any idea, what may cause it?<br><br><br>1>uafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol<br>
___wargv<br>1>uafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol<br>___argc<br>1>vtkCommon.lib(vtkPoints.obj) : error LNK2019: unresolved external<br>symbol "__declspec(dllimport) public: class<br>
std::basic_ostream<char,struct std::char_traits<char> > & __thiscall<br>std::basic_ostream<char,struct std::char_traits<char><br>>::operator<<(double)"<br>(__imp_??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z)<br>
referenced in function "public: virtual void __thiscall<br>vtkPoints::PrintSelf(class std::basic_ostream<char,struct<br>std::char_traits<char> > &,class vtkIndent)"<br>(?PrintSelf@vtkPoints@@UAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@st<br>
d@@VvtkIndent@@@Z)<br>....................<br>....................<br>....................<br>1>vtkCommon.lib(vtkDebugLeaks.obj) : error LNK2019: unresolved external<br>symbol "__declspec(dllimport) public: class<br>
std::basic_string<char,struct std::char_traits<char>,class<br>std::allocator<char> > & __thiscall std::basic_string<char,struct<br>std::char_traits<char>,class std::allocator<char> >::operator+=(char<br>
const *)"<br>(__imp_??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Q<br>AEAAV01@PBD@Z) referenced in function "public: void __thiscall<br>vtkDebugLeaksHashNode::Print(class std::basic_string<char,struct<br>
std::char_traits<char>,class std::allocator<char> > &)"<br>(?Print@vtkDebugLeaksHashNode@@QAEXAAV?$basic_string@DU?$char_traits@D@s<br>td@@V?$allocator@D@2@@std@@@Z)<br><br>thanks,<br>Iryna<br><br>
_______________________________________________<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>