[Insight-users] fail to compile itk with GDCM2.x

Mathieu Malaterre mathieu.malaterre at gmail.com
Sun Apr 5 15:42:36 EDT 2009


On Fri, Apr 3, 2009 at 4:09 PM, Hsiang-Chi Kuo <kuoxgx at gmail.com> wrote:
> Hi,
>
> I am having problem to build ITK with USE_SYSTEM_GDCM, itk fails to compile
> when I enable that flag:
>
>
>
> c:\itk\itk3.12\code\io\itkGDCMSeriesFileNames.h(157) : error C2664: 'void
> gdcm::SerieHelper::AddRestriction(const gdcm::TagKey &)' : cannot convert
> parameter 1 from 'const std::string' to 'const gdcm::TagKey &'
>
>         Reason: cannot convert from 'const std::string' to 'const
> gdcm::TagKey'
>
>         No user-defined-conversion operator available that can perform this
> conversion, or the operator cannot be called
>
> ..\..\..\ITK3.12\Code\IO\itkGDCMSeriesFileNames.cxx(34) : error C2248:
> 'gdcm::SerieHelper::SerieHelper' : cannot access protected member declared
> in class 'gdcm::SerieHelper'
>
>         C:\GDCM\gdcm\src\gdcmSerieHelper.h(190) : see declaration of
> 'gdcm::SerieHelper::SerieHelper'
>
>         C:\GDCM\gdcm\src\gdcmSerieHelper.h(63) : see declaration of
> 'gdcm::SerieHelper'
>

What version of GDCM are you trying to use (value entered in GDCM_DIR).

Thanks,

-- 
Mathieu


More information about the Insight-users mailing list