[Insight-users] compilation error on linux

Kevin H. Hobbs kevin.hobbs.1 at ohiou.edu
Tue Oct 11 10:23:05 EDT 2005


On Tue, 2005-10-11 at 12:36 +0200, Reinhard Hameeteman wrote:
> Hi,
> 
> I am making an application to do deformable liver registrations. The
> program I made so far works fine on a windows machine using the VC++
> 6.0 compiler. But now I want to move the program to a linux machine
> and refuses to compile using
> gcc 3.3.5 and make 3.8. The error is in a templated class which I
> wrote. In my program I perform a rigid registration which final
> parameters (3 translation parameters) I use to initialize the non
> rigid registration. My nonrigidregistration class has a member
> m_RigidTransformParameters which stores these parameters.
> The member function SetRigidTransform causes the following compilation error:
> 
> /home/rhameeteman/source/test2/NonRigidRegistration.txx:105: error: prototype
>    for `void NonRigidRegistration<TFixedImage, TMovingImage,
>    TOutputImage>::SetRigidTransform(typename
>    itk::BSplineDeformableTransform<double, NonRigidRegistration<TFixedImage,
>    TMovingImage, TOutputImage>::ImageDimension, 3>::ParametersType)' does not
>    match any in class `NonRigidRegistration<TFixedImage, TMovingImage,
>    TOutputImage>'
> /home/rhameeteman/source/test2/NonRigidRegistration.h:209: error: candidate is:
>    void NonRigidRegistration<TFixedImage, TMovingImage,
>    TOutputImage>::SetRigidTransform(typename
>    itk::BSplineDeformableTransform<double, NonRigidRegistration<TFixedImage,
>    TMovingImage, TOutputImage>::ImageDimension, 3>::ParametersType)
> /home/rhameeteman/source/test2/NonRigidRegistration.txx:105: error: template
>    definition of non-template `void NonRigidRegistration<TFixedImage,
>    TMovingImage, TOutputImage>::SetRigidTransform(typename
>    itk::BSplineDeformableTransform<double, NonRigidRegistration<TFixedImage,
>    TMovingImage, TOutputImage>::ImageDimension, 3>::ParametersType)'
> make[1]: *** [LivReg.o] Error 1
> make: *** [default_target] Error 2
> 
> What puzzles me is that the suggested candidate is exactly the same as
> the one causing the error.
> I included a sort of minimal example to demonstrate the problem. It
> compiles fine in VC, but won't build on Linux.
> I use itk 2.2.0
> 
> Reinhard
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


Usually this is a missing header. itkImage maybe?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://public.kitware.com/pipermail/insight-users/attachments/20051011/1565b70b/attachment.pgp


More information about the Insight-users mailing list