The library name &quot;uaxfcwd.lib&quot; 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&#39;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> &lt;<a href="mailto:iryna@andrew.cmu.edu">iryna@andrew.cmu.edu</a>&gt; 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&gt;uafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol<br>
___wargv<br>1&gt;uafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol<br>___argc<br>1&gt;vtkCommon.lib(vtkPoints.obj) : error LNK2019: unresolved external<br>symbol &quot;__declspec(dllimport) public: class<br>
std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp; __thiscall<br>std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt;<br>&gt;::operator&lt;&lt;(double)&quot;<br>(__imp_??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z)<br>
referenced in function &quot;public: virtual void __thiscall<br>vtkPoints::PrintSelf(class std::basic_ostream&lt;char,struct<br>std::char_traits&lt;char&gt; &gt; &amp;,class vtkIndent)&quot;<br>(?PrintSelf@vtkPoints@@UAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@st<br>
d@@VvtkIndent@@@Z)<br>....................<br>....................<br>....................<br>1&gt;vtkCommon.lib(vtkDebugLeaks.obj) : error LNK2019: unresolved external<br>symbol &quot;__declspec(dllimport) public: class<br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class<br>std::allocator&lt;char&gt; &gt; &amp; __thiscall std::basic_string&lt;char,struct<br>std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::operator+=(char<br>
const *)&quot;<br>(__imp_??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Q<br>AEAAV01@PBD@Z) referenced in function &quot;public: void __thiscall<br>vtkDebugLeaksHashNode::Print(class std::basic_string&lt;char,struct<br>
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp;)&quot;<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>