<div>Hello all,</div>
<div> </div>
<div>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.
</div>
<div> </div>
<div>
<p>--------------------Configuration: ConnectVTKITKTcl - Win32 Release--------------------<br>ConnectVTKITK_wrapTcl.cxx from ConnectVTKITK.i<br>Compiling...<br>ConnectVTKITK_wrapTcl.cxx<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch
<br> 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
<br>ned int &)'<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch<br> 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
<br>ned int &)'<br>Linking...<br> Creating library C:\InsightApplications\VolviewPlugIns\bin\Release/ConnectVTKITKTcl.lib and object C:\InsightApplications\VolviewPlugIns\bin\Release/ConnectVTKITKTcl.exp<br>LINK : warning LNK4089: all references to "
ADVAPI32.dll" discarded by /OPT:REF<br>LINK : warning LNK4089: all references to "ITKCommon.dll" discarded by /OPT:REF</p>
<p> </p>
<p><br>--------------------Configuration: vtkWSTCommon - Win32 Release--------------------<br>Compiling...<br>vtkBinaryVolume.cxx<br>vtkBinaryVolumeLogic.cxx<br>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
<span></span> <br>UDT. Will produce errors if applied using infix notation)<br> 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
<br>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
<br>produce errors if applied using infix notation)<br> 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
<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch<br> 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
<br>ned int &)'<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch<br> 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
<br>ned int &)'<br><br>--------------------Configuration: vtkWSTCommonTCL - Win32 Release--------------------</p>
<p>vtkBinaryVolumeLogicTcl.cxx</p>
<p>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'
<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(179) : warning C4146: unary minus operator applied to unsigned type, result still unsigned<br> 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
<br>tor<char,struct std::char_traits<char> > >::do_get(class std::istreambuf_iterator<char<span></span> ,struct std::char_traits<char> >,class std::istreambuf_iterator<char,struct std::char_traits<char> >,class std::ios_base &,int &,unsigned short &) const'
<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(194) : warning C4146: unary minus operator applied to unsigned type, result still unsigned<br> 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
<br>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'
<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(179) : warning C4146: unary minus operator applied to unsigned type, result still unsigned<br> 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
<br>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
<br>ar_traits<unsigned short> >,class std::ios_base &,int &,unsigned short &) const'</p>
<p> </p>
<p> --------------------Configuration: vtkVTKITKCommon - Win32 Release--------------------<br>Compiling...<br>vtkITKMutualInformationTransform.cxx<br>C:\InsightToolkit-<span></span> 3.2.0\Code\Common\itkMersenneTwisterRandomVariateGenerator.h
(239) : warning C4146: unary minus operator applied to unsigned type, result still unsigned<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch<br>
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
<br>ned int &)'<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch<br> 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
<br>ned int &)'<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(156) : warning C4018: '<' : signed/unsigned mismatch<br> 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
<br><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
<br>lObject<1> *> > &)'<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(167) : warning C4018: '<' : signed/unsigned mismatch<br> 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
<span></span> <br><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
<br>lObject<1> *> > &)'<br> </p></div>
<div>There are actually totally 962 warnings. which are mostly warning C4018 C4284 C4146. </div>
<div> </div>
<div>Thank you</div>
<div> </div>
<div> </div>
<div>Yours</div>
<div> </div>
<div>O.Spring.</div><span></span><span class="sg">
<div><br clear="all"><br>-- <br>---------<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vislab.cn/" target="_blank">www.vislab.cn</a> </div></span><br clear="all"><br>