[Insight-developers] ITK build error (shared and explicit instantiation)

Marius Staring marius at isi.uu.nl
Tue Jul 25 08:41:41 EDT 2006


Hi developers,

When building ITK (yesterdays cvs) with shared libs on and with explicit 
instantiation (Windows XP, Visual C 2003) I get the following build errors:


C:/Toolkits\ITK\cvs\binInsightShared\ExplicitITK\Modules\Common\itkCovariantVectorD3.h(5) 
: error C2949: 'itk::CovariantVector<T,NVectorDimension>' : explicit 
instantiation; cannot use 'auto' and 'extern' on the same template-class 
specialization
        with
        [
            T=double,
            NVectorDimension=3
        ]

and

C:/Toolkits\ITK\cvs\binInsightShared\ExplicitITK\Modules\Common\itkRGBPixelUS.h(5) 
: error C2949: 'itk::RGBPixel<TComponent>' : explicit instantiation; 
cannot use 'auto' and 'extern' on the same template-class specialization
        with
        [
            TComponent=unsigned short
        ]

It seems that explicit instantiation is not yet functional for 
CovariantVectors and RGBPixels. Is that assumption correct? This does 
not show on the dashboard; maybe no-one is building with these options.

Cheers,

Marius

-- 
Marius Staring
Image Sciences Institute
University Medical Centre Utrecht
Heidelberglaan 100, 3584 CX Utrecht, The Netherlands
phone: +31 (0)30 250 3186, fax: +31 (0)30 251 3399
marius at isi.uu.nl, http://www.isi.uu.nl/People/Marius



More information about the Insight-developers mailing list