[Insight-developers] GetInverseTransform - MSVC 6 instantiation bug

Tom Vercauteren tom.vercauteren at m4x.org
Thu Apr 9 08:52:15 EDT 2009


Hi all,

The dashboard is giving me the following error on visual 6 compiler:

c:\Dashboards\My
Tests\InsightContinuous\Code\Common\itkTransform.h(120) : error C2027:
use of undefined type 'Transform<double,3,2>'

        c:\Dashboards\My
Tests\InsightContinuous\Code\Common\itkTransform.h(120) : see
reference to class template instantiation 'itk::Transform<double,2,3>'
being compiled
        c:\Dashboards\My
Tests\InsightContinuous\Code\Common\itkRigid3DPerspectiveTransform.h(42)
: see reference to class template instantiation
'itk::Transform<double,3,2>' being compiled
        c:\Dashboards\My
Tests\InsightContinuous\Code\Common\itkTransformFactory.h(37) : see
reference to class template instantiation
'itk::Rigid3DPerspectiveTransform<double>' being compiled
        c:\Dashboards\My
Tests\InsightContinuous\Code\Common\itkTransformFactory.h(36) : while
compiling class-template member function 'void __cdecl
itk::TransformFactory<class itk::Rigid3DPerspectiveTransform<double>
>::RegisterTransform(void)'

http://www.cdash.org/CDash/viewBuildError.php?buildid=309403

Can anyone help me understand what this means?

I initially thought that this might be related to explicit
instantiation since itk::Transform<double,3,2> is not listed in:
http://www.itk.org/cgi-bin/viewcvs.cgi/Wrapping/ExplicitITK/Modules/Common/wrap_itkTransform.cmake?root=Insight&sortby=date&view=markup

Note that I am not even sure that wrap_itkTransform.cmake is the
correct file to look at since I have never worked with explicit
instantiations within ITK before and since I can't manage to compile
ITK with explicit instantiations turned on on my machine.

Also it seems that dash13 is not using  explicit instantiations:
http://www.cdash.org/CDash/testDetails.php?test=20260566&build=308626

Thanks for your help.

Tom


More information about the Insight-developers mailing list