[Insight-users] Linking to the itkgdcm.lib error!
HuJingfei
jingfei.hu at gmail.com
Thu Sep 24 05:17:06 EDT 2009
Hi, ITK’s developers, I am a newbie to the ITK. I have asked the same
question before, but no one answered me. So I post it again, hoping somebody
can help me out.
I encountered a common problem. And I first state the context.
Environment:
s OS: Windows Vista Home Premium
s Compiler: Microsoft Visual Studio 2008
s ITK Version: 3.16
Everything is fine when compiling and building the ITK. And I install the
ITK by building the INSTALL project.
Then I begin to test Examples\Registration\ImageRegistration1.cxx.After
adding the necessary including files, the ImageRegistration1.cxx compiles
successfully.
But when I run it, it throws following linking errors:
itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved symbol
<mailto:_SnmpUtilVarBindFree at 4> _SnmpUtilVarBindFree at 4,this symbol is
invoked in method "int __cdecl gdcm::GetMacAddrSys(unsigned char *)" (
<mailto:?GetMacAddrSys at gdcm@@YAHPAE at Z> ?GetMacAddrSys at gdcm@@YAHPAE at Z)
Some similar error messages omitted...
So I look up the CMakeLists.txt under Utilities/gdcm/src and I find such
codes:
IF(WIN32)
IF(NOT BORLAND)
# rpcrt4 -> UuidCreate
TARGET_LINK_LIBRARIES(itkgdcm wsock32 snmpapi rpcrt4)
ENDIF(NOT BORLAND)
ENDIF(WIN32)
It looks like that the code snippet does not work. So anybody know the
reason and how to fix it?
Sorry for my English.
Best Regards.
Hu Jingfei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090924/4c2f7d7b/attachment.htm>
More information about the Insight-users
mailing list