[Insight-users] Insight application Building Warnings.

Ocean Spring meancity at gmail.com
Wed Sep 5 13:43:36 EDT 2007


Hello all,

i met some warnings when i try to build InsightApplication, which i am not
sure whether these warning are vital or affect any further development. i am
using tcl as wrapping languages. the warning shows below, please give some
explanation or advices on this.


--------------------Configuration: ConnectVTKITKTcl - Win32
Release--------------------
ConnectVTKITK_wrapTcl.cxx from ConnectVTKITK.i
Compiling...
ConnectVTKITK_wrapTcl.cxx
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning
C4018: '<' : signed/unsigned mismatch
        C:\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 &)'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning
C4018: '<' : signed/unsigned mismatch
        C:\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 &)'
Linking...
   Creating library
C:\InsightApplications\VolviewPlugIns\bin\Release/ConnectVTKITKTcl.lib and
object
C:\InsightApplications\VolviewPlugIns\bin\Release/ConnectVTKITKTcl.exp
LINK : warning LNK4089: all references to " ADVAPI32.dll" discarded by
/OPT:REF
LINK : warning LNK4089: all references to "ITKCommon.dll" discarded by
/OPT:REF




--------------------Configuration: vtkWSTCommon - Win32
Release--------------------
Compiling...
vtkBinaryVolume.cxx
vtkBinaryVolumeLogic.cxx
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\list(68) : warning
C4284: return type for 'std::list<unsigned long,class
std::allocator<unsigned long> >::const_iterator::operator ->' is 'const
unsigned long *' (ie; not a UDT or reference to a
UDT.  Will produce errors if applied using infix notation)
        C:\InsightApplications-
3.2.0\SegmentationEditor\Common\vtkWSLookupTableManager.h(164) : see
reference to class template instantiation 'std::list<unsigned long,class
std::allocator<unsigned long> >' being compiled
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\list(103) : warning
C4284: return type for 'std::list<unsigned long,class
std::allocator<unsigned long> >::iterator::operator ->' is 'unsigned long *'
(ie; not a UDT or reference to a UDT.  Will
produce errors if applied using infix notation)
        C:\InsightApplications-
3.2.0\SegmentationEditor\Common\vtkWSLookupTableManager.h(164) : see
reference to class template instantiation 'std::list<unsigned long,class
std::allocator<unsigned long> >' being compiled
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning
C4018: '<' : signed/unsigned mismatch
        C:\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 &)'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning
C4018: '<' : signed/unsigned mismatch
        C:\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 &)'

--------------------Configuration: vtkWSTCommonTCL - Win32
Release--------------------

vtkBinaryVolumeLogicTcl.cxx

C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocale(289) : while
compiling class-template member function 'int __thiscall
std::codecvt<char,char,int>::do_length(int &,const char *,const char
*,unsigned int) const'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(179) : warning
C4146: unary minus operator applied to unsigned type, result still unsigned
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(168) :
while compiling class-template member function 'class
std::istreambuf_iterator<char,struct std::char_traits<char> > __thiscall
std::num_get<char,class std::istreambuf_itera
tor<char,struct std::char_traits<char> > >::do_get(class
std::istreambuf_iterator<char ,struct std::char_traits<char> >,class
std::istreambuf_iterator<char,struct std::char_traits<char> >,class
std::ios_base &,int &,unsigned short &) const'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(194) : warning
C4146: unary minus operator applied to unsigned type, result still unsigned
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(183) :
while compiling class-template member function 'class
std::istreambuf_iterator<char,struct std::char_traits<char> > __thiscall
std::num_get<char,class std::istreambuf_itera
tor<char,struct std::char_traits<char> > >::do_get(class
std::istreambuf_iterator<char,struct std::char_traits<char> >,class
std::istreambuf_iterator<char,struct std::char_traits<char> >,class
std::ios_base &,int &,unsigned int &) const'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(179) : warning
C4146: unary minus operator applied to unsigned type, result still unsigned
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(168) :
while compiling class-template member function 'class
std::istreambuf_iterator<unsigned short,struct std::char_traits<unsigned
short> > __thiscall std::num_get<unsigned sho
rt,class std::istreambuf_iterator<unsigned short,struct
std::char_traits<unsigned short> > >::do_get(class
std::istreambuf_iterator<unsigned short,struct std::char_traits<unsigned
short> >,class std::istreambuf_iterator<unsigned short,struct std::ch
ar_traits<unsigned short> >,class std::ios_base &,int &,unsigned short &)
const'



 --------------------Configuration: vtkVTKITKCommon - Win32
Release--------------------
Compiling...
vtkITKMutualInformationTransform.cxx
C:\InsightToolkit-
3.2.0\Code\Common\itkMersenneTwisterRandomVariateGenerator.h (239) : warning
C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning
C4018: '<' : signed/unsigned mismatch
        C:\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 &)'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning
C4018: '<' : signed/unsigned mismatch
        C:\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 &)'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning
C4018: '<' : signed/unsigned mismatch
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) :
while compiling class-template member function 'void __thiscall
std::vector<class itk::SmartPointer<class itk::TreeNode<class
itk::SpatialObject<1> *> >,class std::allocator
<class itk::SmartPointer<class itk::TreeNode<class itk::SpatialObject<1> *>
> > >::insert(class itk::SmartPointer<class itk::TreeNode<class
itk::SpatialObject<1> *> > *,unsigned int,const class
itk::SmartPointer<class itk::TreeNode<class itk::Spatia
lObject<1> *> > &)'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning
C4018: '<' : signed/unsigned mismatch
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) :
while compiling class-template member function 'void __thiscall
std::vector<class itk::SmartPointer<class itk::TreeNode<class
itk::SpatialObject<1> *> >,class std::allocator
<class itk::SmartPointer<class itk::TreeNode<class itk::SpatialObject<1> *>
> > >::insert(class itk::SmartPointer<class itk::TreeNode<class
itk::SpatialObject<1> *> > *,unsigned int,const class
itk::SmartPointer<class itk::TreeNode<class itk::Spatia
lObject<1> *> > &)'

There are actually totally 962 warnings. which are mostly warning C4018
C4284 C4146.

Thank you


Yours

O.Spring.


-- 
---------
www.vislab.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070906/fa804cbb/attachment.html


More information about the Insight-users mailing list