[Insight-users] Link errors using GDCM in ITK2.0.0

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Mar 15 09:47:25 EST 2005


George,

	In order to properly link gdcm with visual studio you need snmpapi. 
This should be pretty standard on most win32 plateform. What version of 
Win32 are you using ?

Mathieu

IF(WIN32)
   IF(NOT BORLAND)
     TARGET_LINK_LIBRARIES(itkgdcm wsock32 snmpapi)
   ENDIF(NOT BORLAND)
ENDIF(WIN32)

Li, George (NIH/NCI) wrote:
> Hi, ITK developers and users:
> 
> I got a few link errors when trying to incorporate GDCM
> Into my image registration program using ITK2.0.0 with
> VC++6 compiler. Here they are:
> 
> itkGDCM.lib(gdcmUtil.obj) : error LNK2001: unresolved external symbol
> _SnmpUtilVarBindFree at 4
> itkGDCM.lib(gdcmUtil.obj) : error LNK2001: unresolved external symbol
> _SnmpUtilOidNCmp at 12
> itkGDCM.lib(gdcmUtil.obj) : error LNK2001: unresolved external symbol
> _SnmpUtilOidCpy at 8
> 
> Any ideas what have done wrong or been missing? 
> 
> Thanks,
> 
> George
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 



More information about the Insight-users mailing list