[Insight-users] linking errors

Mark Roden mmroden at gmail.com
Wed Nov 4 09:15:25 EST 2009


Hi Mathieu,

I tried using both versions of gdcm.  First, I used the version that
ships with itk, and got those linker errors.  I'll look for that
library and linking it in.

Second, I tried the advanced itk build option of 'use system gdcm' and
used gdcm v 2.0.13 (actually, it was the trunk build, synced
yesterday).  With that version, everything builds just fine, but then
I get a crash when I try to instantiate a gdcmio object.  Is there
some way to fix this second use, or do I need more linkages to make it
work?  I thought that gdcm 2.1 would be a better fit for modern dicom
images, especially since I'm looking to read in RT images as well, and
so need at least the 2.0 versions of the library.

Thanks,
Mark

On Wed, Nov 4, 2009 at 12:31 AM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> On Tue, Nov 3, 2009 at 8:20 PM, Mark Roden <mmroden at gmail.com> wrote:
>> Hi all,
>> problem is, I'm getting these linker errors:
>>
>> 1>itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved external
>> symbol __imp__UuidCreate at 4 referenced in function "private: static
>
> You are missing a link to the library: rpcrt4.
>
> What I do not understand is that it mention 'itkgdcm' which is the
> patch gdcm 1.2.x shipped within ITK, but at the same time you mention
> using GDCM 2.x.
> Using a combination of the library may work (in theory), but I do not
> recommend it.
>
> Please pick only one GDCM library.
>
> HTH
> --
> Mathieu
>


More information about the Insight-users mailing list