<div>Hi,</div><div>I am trying to use ITK in QT, but I encounter 7 errors by simply include a header.</div><div> </div><div>The header included is <span style="color:rgb(0,128,0)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">&quot;itkImageFileReader.h&quot;</span></div>
<div><span style="color:rgb(0,128,0)"></span> </div><div><span style="color:rgb(0,128,0)"><font color="#000000">All the errors are related to itksys.lib, following is one of them.</font></span></div><div><span style="color:rgb(0,128,0)"><font color="#000000"></font></span> </div>
<div><span style="color:rgb(0,128,0)"><font color="#000000">itksys.lib(SystemTools.obj):-1: error: LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: char const * __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::c_str(void)const &quot; (<a href="mailto:__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ">__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ</a>) referenced in function &quot;public: static void __cdecl itksys::SystemTools::GetPath(class std::vector&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;,class std::allocator&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &gt; &gt; &amp;,char const *)&quot; (<a href="mailto:?GetPath@SystemTools@itksys@@SAXAAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@PBD@Z">?GetPath@SystemTools@itksys@@SAXAAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@PBD@Z</a>)</font></span></div>
<div><span style="color:rgb(0,128,0)"><font color="#000000"></font></span> </div><div><span style="color:rgb(0,128,0)"><font color="#000000">I use cmake2.8.9+vs2010 to compile and build ITK. The only dll file I got is itkCommon.dll. </font></span></div>
<div><span style="color:rgb(0,128,0)"><font color="#000000">And I have included the header path and all the lib file to my project.</font></span></div><div><span style="color:rgb(0,128,0)"><font color="#000000"></font></span> </div>
<div><span style="color:rgb(0,128,0)"><font color="#000000">Could you help me solve the error?</font></span></div><div><span style="color:rgb(0,128,0)"><font color="#000000"></font></span> </div><div><span style="color:rgb(0,128,0)"><font color="#000000">Thank you!</font></span></div>
<div><span style="color:rgb(0,128,0)"><font color="#000000"></font></span> </div><div><span style="color:rgb(0,128,0)"><font color="#000000">Huier,</font></span></div><div><span style="color:rgb(0,128,0)"><font color="#000000">Regards</font></span></div>