[Insight-users] DicomImageReadWrite error itkgdcm.lib(gdcmUtil.obj) : error LNK2019

Chanukya Krishna Chama chanukya_chess at yahoo.co.in
Wed Aug 4 09:51:56 EDT 2010


Thanks

Now the problem is fixed for DicomImageReadWrite program, but in future, if i 
run other examples, will it miss linking those files from windows SDK and result 
error?? as i cant figure out those in details??
Is there anyway to include all other *.lib files from Windows SDK in visual 
studio for all other projects?






________________________________
From: ALBERT Aurélien <aurelien.albert at alyotech.fr>
To: John Drescher <drescherjm at gmail.com>; Chanukya Krishna Chama 
<chanukya_chess at yahoo.co.in>
Cc: "insight-users at itk.org" <insight-users at itk.org>
Sent: Wed, 4 August, 2010 6:43:47 PM
Subject: RE: [Insight-users] DicomImageReadWrite error itkgdcm.lib(gdcmUtil.obj) 
: error LNK2019

You have to link your project with :

snmpapi.lib
rpcrt4.lib
wsock32.lib

These libs are from Windows SDK.




-----Message d'origine-----
De : insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org] De la 
part de John Drescher
Envoyé : mercredi 4 août 2010 13:47
À : Chanukya Krishna Chama
Cc : insight-users at itk.org
Objet : Re: [Insight-users] DicomImageReadWrite error itkgdcm.lib(gdcmUtil.obj) 
: error LNK2019

On Wed, Aug 4, 2010 at 6:14 AM, Chanukya Krishna Chama
<chanukya_chess at yahoo.co.in> wrote:
> I'm using ITK 3.20 & Visual Studio 2010 along with cmake to run sample
> DicomImageReadWrite example program in ITK folder.
>
> After including all the *.lib files in ITK\lib\  in Input of Linker in
> visual studio, i'm getting the below error while debugging
>
> itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved external symbol
> _SnmpUtilVarBindFree at 4 referenced in function "int __cdecl
> gdcm::GetMacAddrSys(unsigned char *)" (?GetMacAddrSys at gdcm@@YAHPAE at Z)
>
> How to remove this error ?
>

I would start by generating your visual studio projects using CMake.
After you become an expert at that then you can use itk the hard way.

John
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100804/50be09f3/attachment.htm>


More information about the Insight-users mailing list