[Insight-users] Cannot compile itk with VC6 and STLPort

Aaron Boxer boxerab at yahoo.com
Fri Jan 18 11:00:27 EST 2002


Dear Insight,
I am getting the following errors when I try to
compile the VXLNumerics project with VC6.
I am using the STLPort stl library:


vnl_c_vector+double_complex-.cxx
D:\src\ITK\Insight\Code\Numerics\vxl\vcl\win32/vcl_complex.h(27)
: warning C4244: 'return' : conversion from 'double'
to 'float', possible loss of data
       
D:\src\ITK\Insight\Code\Numerics\vxl\vnl/vnl_complex.h(35)
: see reference to function template instantiation
'float __cdecl abs(const struct _STL::complex<float>
&)' being compiled
D:\src\ITK\Insight\Code\Numerics\vxl\vnl/vnl_c_vector.txx(33)
: error C2440: 'type cast' : cannot convert from
'struct _STL::complex<double>' to 'double'
        No user-defined-conversion operator available
that can perform this conversion, or the operator
cannot be called
        D:\STLPORT\STLPORT\stl/_alloc.h(253) : while
compiling class-template member function 'void __cdecl
vnl_c_vector<struct _STL::complex<double>
>::normalize(struct _STL::complex<double> *,unsigned
int)'
D:\src\ITK\Insight\Code\Numerics\vxl\vnl/vnl_c_vector.txx(224)
: error C2440: 'type cast' : cannot convert from
'struct _STL::complex<double>' to 'double'
        No user-defined-conversion operator available
that can perform this conversion, or the operator
cannot be called
       
D:\src\ITK\Insight\Code\Numerics\vxl\vnl\Templates\vnl_c_vector+double_complex-.cxx(9)
: see reference to function template instantiation
'void __cdecl vnl_c_vector_rms_norm(const struct
_STL::complex<double> *,unsigned int,struct _STL::comp
lex<double> *)' being compiled

Thank you.

Aaron Boxer
boxerab at NOSPAMyahoo.com



__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



More information about the Insight-users mailing list