[Insight-users] ITK+QT
Hui Li
huili0918 at gmail.com
Thu Sep 13 22:47:52 EDT 2012
Hi,
I am trying to use ITK in QT, but I encounter 7 errors by simply include a
header.
The header included is #include "itkImageFileReader.h"
All the errors are related to itksys.lib, following is one of them.
itksys.lib(SystemTools.obj):-1: error: LNK2019: unresolved external symbol
"__declspec(dllimport) public: char const * __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::c_str(void)const " (
__imp_?c_str@?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QBEPBDXZ)
referenced in function "public: static void __cdecl
itksys::SystemTools::GetPath(class std::vector<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::allocator<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > > > &,char const *)" (
?GetPath at SystemTools@itksys@@SAXAAV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@std@@PBD at Z
)
I use cmake2.8.9+vs2010 to compile and build ITK. The only dll file I got
is itkCommon.dll.
And I have included the header path and all the lib file to my project.
Could you help me solve the error?
Thank you!
Huier,
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120914/d8219d50/attachment.htm>
More information about the Insight-users
mailing list