[Insight-users] Cannot compile itk with VC6 and STLPort
William A. Hoffman
bill.hoffman at kitware.com
Fri Jan 18 11:18:34 EST 2002
Do not use STLPort, ITK has only be testes/configured to work with the
native STL provided with the compilers
we support.
-Bill
At 08:00 AM 1/18/2002 -0800, Aaron Boxer wrote:
>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/
>_______________________________________________
>Insight-users mailing list
>Insight-users at public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users
More information about the Insight-users
mailing list