[Insight-users] Re: ITK 1.8 build warnings

Luis Ibanez luis.ibanez at kitware.com
Wed Aug 18 16:12:39 EDT 2004


Hi Nawab,

Thanks for reporting this.

You can safely ignore these warnings.

Please let us know if you find any other issues.


    Thanks


      Luis



----------------------------
Nawab Singh Baghel wrote:

> Dear Luis,
> 
> I downloaded ITK 1.8 and compiled using Cmake 2.0.3 and visual c++. I
> received 38 warnings. Is this normal or will create problems later. I m
> attaching error text file for ur kind perusal. Please help me.
> 
> Regards
> Nawab
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> vcl_vector+vnl_vector+vcl_complex+double---.cxx
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> vnl_matrix+vcl_complex+double--.cxx
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<double>,class std::allocator<class std::complex<double> > >::insert(class std:
> :complex<double> *,unsigned int,const class std::complex<double> &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<double>,class std::allocator<class std::complex<double> > >::insert(class std:
> :complex<double> *,unsigned int,const class std::complex<double> &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<double> *,class std::allocator<class std::complex<double> *> >::insert(class s
> td::complex<double> ** ,unsigned int,class std::complex<double> *const & )'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<double> *,class std::allocator<class std::complex<double> *> >::insert(class s
> td::complex<double> ** ,unsigned int,class std::complex<double> *const & )'
> vnl_matrix+vcl_complex+float--.cxx
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<float>,class std::allocator<class std::complex<float> > >::insert(class std::c
> omplex<float> *,unsigned int,const class std::complex<float> &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<float>,class std::allocator<class std::complex<float> > >::insert(class std::c
> omplex<float> *,unsigned int,const class std::complex<float> &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<float> *,class std::allocator<class std::complex<float> *> >::insert(class std
> ::complex<float> ** ,unsigned int,class std::complex<float> *const & )'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<float> *,class std::allocator<class std::complex<float> *> >::insert(class std
> ::complex<float> ** ,unsigned int,class std::complex<float> *const & )'
> vnl_matrix+vcl_complex+long_double--.cxx
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<long double>,class std::allocator<class std::complex<long double> > >::insert(
> class std::complex<long double> *,unsigned int,const class std::complex<long double> &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<long double>,class std::allocator<class std::complex<long double> > >::insert(
> class std::complex<long double> *,unsigned int,const class std::complex<long double> &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<long double> *,class std::allocator<class std::complex<long double> *> >::inse
> rt(class std::complex<long double> ** ,unsigned int,class std::complex<long double> *const & )'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<long double> *,class std::allocator<class std::complex<long double> *> >::inse
> rt(class std::complex<long double> ** ,unsigned int,class std::complex<long double> *const & )'
> vnl_vector+vcl_complex+double--.cxx
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<double>,class std::allocator<class std::complex<double> > >::insert(class std:
> :complex<double> *,unsigned int,const class std::complex<double> &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<double>,class std::allocator<class std::complex<double> > >::insert(class std:
> :complex<double> *,unsigned int,const class std::complex<double> &)'
> vnl_vector+vcl_complex+float--.cxx
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\nsb-dcm\InsightToolkit-1.8.0\Utilities\vxl\core\vnl/vnl_vector.txx(789) : warning C4244: 'argument' : conversion from 'double' to 'const float', possible loss of data
>         D:\nsb-dcm\InsightToolkit-1.8.0\Utilities\vxl\core\vnl\Templates\vnl_vector+vcl_complex+float--.cxx(3) : see reference to function template instantiation 'class std::complex<float> __cdecl cos_angle(const class vnl_vector<class std::complex<
> float> > &,const class vnl_vector<class std::complex<float> > &)' being compiled
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<float>,class std::allocator<class std::complex<float> > >::insert(class std::c
> omplex<float> *,unsigned int,const class std::complex<float> &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<float>,class std::allocator<class std::complex<float> > >::insert(class std::c
> omplex<float> *,unsigned int,const class std::complex<float> &)'
> vnl_vector+vcl_complex+long_double--.cxx
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<long double>,class std::allocator<class std::complex<long double> > >::insert(
> class std::complex<long double> *,unsigned int,const class std::complex<long double> &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<class std::complex<long double>,class std::allocator<class std::complex<long double> > >::insert(
> class std::complex<long double> *,unsigned int,const class std::complex<long double> &)'
> test_algo.cxx
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch
>         D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : while compiling class-template member function 'void __thiscall std::vector<unsigned int,class std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const unsig
> ned int &)'
> Generating Code...
> Linking...
> --------------------Configuration: vnl_test_include - Win32 RelWithDebInfo--------------------
> Compiling...
> test_include.cxx
> D:\nsb-dcm\InsightToolkit-1.8.0\Utilities\vxl\core\vnl/vnl_config.h(10) : warning C4005: 'VNL_CONFIG_CHECK_BOUNDS' : macro redefinition
>         D:\nsb-dcm\InsightToolkit-1.8.0\Utilities\vxl\core\vnl/vnl_matrix.h(22) : see previous definition of 'VNL_CONFIG_CHECK_BOUNDS'
> itkSimplexMeshAdaptTopologyFilterTest.cxx
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xtree(74) : warning C4503: 'pair<class std::_Tree<unsigned long,struct std::pair<unsigned long const ,class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsig
> ned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long> > > > *>,struct std::map<unsigned l
> ong,class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsigned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct
>  std::less<unsigned long>,class std::allocator<unsigned long> > > > *,struct std::less<unsigned long>,class std::allocator<class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsigned long,unsigned long,class itk:
> :Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long> > > > *> >::_Kfn,struct std::less<unsigned long>,class std::allocato
> r<class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsigned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct s
> td::less<unsigned long>,class std::allocator<unsigned long> > > > *> >::const_iterator,class std::_Tree<unsigned long,struct std::pair<unsigned long const ,class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsig
> ned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long> > > > *>,struct std::map<unsigned l
> ong,class itk::CellInterface<double,class itk::CellTrait
> sInfo<3,double,double,unsigned long,unsigned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned 
> long> > > > *,struct std::less<unsigned long>,class std::allocator<class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsigned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,c
> lass itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long> > > > *> >::_Kfn,struct std::less<unsigned long>,class std::allocator<class itk::CellInterface<double,class itk::CellTraitsI
> nfo<3,double,double,unsigned long,unsigned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned lo
> ng> > > > *> >::const_iterator>' : decorated name length exceeded, name was truncated
> D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xtree(74) : warning C4503: 'pair<class std::_Tree<unsigned long,struct std::pair<unsigned long const ,class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsig
> ned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long> > > > *>,struct std::map<unsigned l
> ong,class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsigned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct
>  std::less<unsigned long>,class std::allocator<unsigned long> > > > *,struct std::less<unsigned long>,class std::allocator<class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsigned long,unsigned long,class itk:
> :Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long> > > > *> >::_Kfn,struct std::less<unsigned long>,class std::allocato
> r<class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsigned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct s
> td::less<unsigned long>,class std::allocator<unsigned long> > > > *> >::iterator,class std::_Tree<unsigned long,struct std::pair<unsigned long const ,class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsigned lo
> ng,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long> > > > *>,struct std::map<unsigned long,cl
> ass itk::CellInterface<double,class itk::CellTraitsInfo<
> 3,double,double,unsigned long,unsigned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long> 
> 
>>>>*,struct std::less<unsigned long>,class std::allocator<class itk::CellInterface<double,class itk::CellTraitsInfo<3,double,double,unsigned long,unsigned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class i
> 
> tk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long> > > > *> >::_Kfn,struct std::less<unsigned long>,class std::allocator<class itk::CellInterface<double,class itk::CellTraitsInfo<3,
> double,double,unsigned long,unsigned long,unsigned long,class itk::Point<double,3>,class itk::MapContainer<unsigned long,class itk::Point<double,3> >,class std::set<unsigned long,struct std::less<unsigned long>,class std::allocator<unsigned long> > 
> 
>>>*> >::iterator>' : decorated name length exceeded, name was truncated
> 
> 
> 
> ALL_BUILD - 0 error(s), 38 warning(s)






More information about the Insight-users mailing list