[Insight-users] itk 2.0 compile with MS-VS7.0 and explicit template instantiation

Bitter, Ingmar (NIH/CC/DRD) IBitter at cc.nih.gov
Fri Mar 11 09:16:59 EST 2005


Hi,

I tried to compile itk 2.0 with MS-VS7.0 and explicit template
instantiation.


First I got:
warning C4231: nonstandard extension used : 'extern' before template
explicit instantiation
Deleting the extern from 
   extern template class SpecialCoordinatesImage<float,2>;
for all occurrences of this construct made MSVS7.0 happy.


Next I got:
fatal error C1076: compiler limit : internal heap limit reached; use /Zm to
specify a higher limit

After changing /Zm1000 (default) to /Zm2000 (max) I got another complaint
about insufficient heap size. So I went back to the defaults.


Looking at itkExplicitInstantiations.cxx I decided to delete all
instantiation for 
5 dimensions
double images
unsigned int images
itkPhasedArray3DSpecialCoordinatesImage
itkSpecialCoordinatesImage


after that it compiled fine !

Ingmar

Ingmar Bitter, PhD
Staff Scientist
NIH, CC, DRD, CIPS
email: ibitter at nih.gov
Tel: 301.435.2155




More information about the Insight-users mailing list