[Insight-users] windows build wrapping compile error

Brad King brad.king@kitware.com
Wed, 18 Sep 2002 09:26:30 -0400 (EDT)


Hi Feng,

>   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
[snip]
>   That is the only error message I got in windows build. Can someone
> help out? Thanks in advance.

This is a bug in the itkDenseFiniteDifferenceImageFilter that is only
revealed by the Tcl wrapper generation scheme.  Luis has just fixed it in
CVS.

-Brad