[Insight-users] windows build wrapping compile error

Feng Ma mafeng@hotmail.com
Wed, 18 Sep 2002 03:14:30 -0400


Hi,

  I met a problem when compiling ITKCommonTcl.lib. My working environments 
are: WindowsXP Home, MSVC++6.0 (SP5), gcc_xml precompiled version 0.2. The 
error happened when compiling 
wrap_itkDenseFiniteDifferenceImageFilter_tcl.cxx

  D:\Insight\Code\Common\itkDenseFiniteDifferenceImageFilter.txx(211) : 
error C2664: '()' : cannot convert parameter 1 from 'class 
itk::SmartPointer<class itk::Image<float,2> >' to 'const class 
itk::Image<unsigned short,2> *'
        No user-defined-conversion operator available that can perform this 
conversion, or the operator cannot be called
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xstring(583) : 
while compiling class-template member function 'double __thiscall 
itk::DenseFiniteDifferenceImageFilter<class itk::Image<unsigned 
short,2>,class itk::Image<float,2> >::Thre
adedCalculateChange(const class itk::ImageRegion<2> &,int)'
D:\Insight\Code\Common\itkDenseFiniteDifferenceImageFilter.txx(211) : error 
C2064: term does not evaluate to a function
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xstring(583) : 
while compiling class-template member function 'double __thiscall 
itk::DenseFiniteDifferenceImageFilter<class itk::Image<unsigned 
short,2>,class itk::Image<float,2> >::Thre
adedCalculateChange(const class itk::ImageRegion<2> &,int)'
D:\Insight\Code\Common\itkDenseFiniteDifferenceImageFilter.txx(211) : error 
C2664: '()' : cannot convert parameter 1 from 'class itk::SmartPointer<class 
itk::Image<float,3> >' to 'const class itk::Image<unsigned short,3> *'
        No user-defined-conversion operator available that can perform this 
conversion, or the operator cannot be called
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xstring(583) : 
while compiling class-template member function 'double __thiscall 
itk::DenseFiniteDifferenceImageFilter<class itk::Image<unsigned 
short,3>,class itk::Image<float,3> >::Thre
adedCalculateChange(const class itk::ImageRegion<3> &,int)'
D:\Insight\Code\Common\itkDenseFiniteDifferenceImageFilter.txx(211) : error 
C2064: term does not evaluate to a function
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xstring(583) : 
while compiling class-template member function 'double __thiscall 
itk::DenseFiniteDifferenceImageFilter<class itk::Image<unsigned 
short,3>,class itk::Image<float,3> >::Thre
adedCalculateChange(const class itk::ImageRegion<3> &,int)'


  I saw someone posted a similar error message posted by Samuel Rodríguez 
Bescos. But I can not find the answer in the archive.

  That is the only error message I got in windows build. Can someone help 
out? Thanks in advance.

-Feng



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com