[Insight-users] weird link error 2005 when using ITKv4

李志成 zc.li at siat.ac.cn
Wed Jan 11 09:56:20 EST 2012


Hi Matt,


Thanks for attention. Yes of course I built all needed library. It is weird as when I was back to ITKv3.20.1 the link 2005 error disappeared-_-!


Best,
Zhicheng



-----Original Messages-----
From: "Matt McCormick" <matt.mccormick at kitware.com>
Sent Time: Wednesday, January 11, 2012
To: "Li Zhi-Cheng" <zc.li at siat.ac.cn>
Cc:
Subject: Re: [Insight-users] weird link error 2005 when using ITKv4



Hi Zhicheng,

Are you making a convenience library that has ITK and trying to built shared libraries under Windows?  That situation is known to have issues with export symbol specification at this time.  The workaround is to built static libraries at the moment.

Thanks,
Matt

On Jan 11, 2012 7:17 AM, "Li Zhi-Cheng" <zc.li at siat.ac.cn> wrote:


Hi all,

 

I am using ITKv4 in my project. After generating the solution using CMake, I built it but met an weird link error as follow:

 

2>ITKNrrdIO-4.0.lib(miscAir.obj) : error LNK2005: _itk_airFree already defined in FtkThinning.lib(FtkThinning.dll)

2>ITKNrrdIO-4.0.lib(simple.obj) : error LNK2005: _itk_nrrdSpaceDimension already defined in FtkThinning.lib(FtkThinning.dll)

2>ITKNrrdIO-4.0.lib(simple.obj) : error LNK2005: _itk_nrrdSpaceSet already defined in FtkThinning.lib(FtkThinning.dll)

2>ITKNrrdIO-4.0.lib(simple.obj) : error LNK2005: _itk_nrrdSpaceDimensionSet already defined in FtkThinning.lib(FtkThinning.dll)

2>ITKNrrdIO-4.0.lib(simple.obj) : error LNK2005: _itk_nrrdSpaceOriginSet already defined in FtkThinning.lib(FtkThinning.dll)

……..

 

Followed by tons of similar errors. I am not sure what occurred? 

 

Thanks!

 

Best regards,

Zhicheng


_____________________________________
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/20120111/b2e73740/attachment.htm>


More information about the Insight-users mailing list