[Insight-users] Error when compiling ITK with Cmake 2.2.3 on Visual C++ 6

Thiago Velho (CenPRA) trdvelho at cenpra.gov.br
Tue Jun 6 13:43:39 EDT 2006


Hi all,

I am using ITK 2-6, Microsoft Visual C++ 6.0, Windows XP, ITK Application 2-6.

When I try to compile de binary code with Microsoft Visual C++ 6.0, made by Cmake 2.2.3, I'm having some problems that seems to be because some absent of a constructor in itkVector.txx. I realy would appreciatte some help with this problem.
Remembering that when configuring Cmake for bulding binary code I setup Flag_Explicit_Instantiation = ON.

Thanks before all.
--------------------Configuration: ITKCommon - Win32 Release--------------------

Compiling...

itkVectorD2.cxx

C:\InsightToolkit\Code\Common\itkVector.h(178) : error C2558: class 'itk::Vector<double,2>' : no copy constructor available

C:\InsightToolkit\Code\Common\itkVector.h(172) : while compiling class-template member function 'class itk::Vector<double,2> __thiscall itk::Vector<double,2>::operator *(const double &) const'

itkVectorD3.cxx

C:\InsightToolkit\Code\Common\itkVector.h(178) : error C2558: class 'itk::Vector<double,3>' : no copy constructor available

C:\InsightToolkit\Code\Common\itkVector.h(172) : while compiling class-template member function 'class itk::Vector<double,3> __thiscall itk::Vector<double,3>::operator *(const double &) const'

itkVectorF2.cxx

C:\InsightToolkit\Code\Common\itkVector.h(178) : error C2558: class 'itk::Vector<float,2>' : no copy constructor available

C:\InsightToolkit\Code\Common\itkVector.h(172) : while compiling class-template member function 'class itk::Vector<float,2> __thiscall itk::Vector<float,2>::operator *(const float &) const'

itkVectorF3.cxx

C:\InsightToolkit\Code\Common\itkVector.h(178) : error C2558: class 'itk::Vector<float,3>' : no copy constructor available

C:\InsightToolkit\Code\Common\itkVector.h(172) : while compiling class-template member function 'class itk::Vector<float,3> __thiscall itk::Vector<float,3>::operator *(const float &) const'

Generating Code...

Error executing cl.exe.

ALL_BUILD - 4 error(s), 0 warning(s)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060606/f866039c/attachment.htm


More information about the Insight-users mailing list