[vtkusers] build errors VS12, need to #include <algorithm>

Lars Matthäus lars.matthaeus at web.de
Thu Nov 14 15:00:06 EST 2013


Fixed now, thanks!

Am 14.11.2013 20:48, schrieb David E DeMarle:
> I merged it just now. Joachim, please keep an eye out today and tomorrow.
> 
> On Thu, Nov 14, 2013 at 2:39 PM, David Gobbi <david.gobbi at gmail.com
> <mailto:david.gobbi at gmail.com>> wrote:
> 
>     Hi Lars,
> 
>     Thanks for the note.  A patch for this was approved two weeks ago, but
>     for some reason it was not merged yet:
>     http://review.source.kitware.com/#/c/13199/
> 
>     Hopefully someone will read this email and push the "submit" button to
>     merge this patch into master :)
> 
>       David
> 
> 
> 
> 
>     On Thu, Nov 14, 2013 at 12:21 PM, Lars Matthäus
>     <lars.matthaeus at web.de <mailto:lars.matthaeus at web.de>> wrote:
>     > Dear all,
>     >
>     > I'm facing build issues with the current master branch using Visual
>     > Studio 2013 (aka Visual Studio 12) and compiling 64 bit.
>     >
>     > I get error messages like
>     >
>     > error C2039: 'max' : is not a member of 'std'
>     > VTK\Common\Core\vtkUnicodeStringArray.cxx       133
>     > error C3861: 'max': identifier not found
>     > VTK\Common\Core\vtkUnicodeStringArray.cxx       133
>     > error C2039: 'min' : is not a member of 'std'
>     > VTK\Filters\Core\vtkCutter.cxx  826
>     > error C3861: 'min': identifier not found
>     > IVTK\Filters\Core\vtkCutter.cxx 826     1       vtkFiltersCore
>     >
>     > All in all, it affects 16 files:
>     > Charts\Core\vtkContextPolygon.cxx
>     > Charts\Core\vtkPiecewisePointHandleItem.cxx
>     > Common\Core\vtkUnicodeStringArray.cxx
>     > Common\DataModel\vtkMappedUnstructuredGrid.txx
>     > Filters\Core\vtkCutter.cxx
>     > Filters\Core\vtkThreshold.cxx
>     > Filters\General\vtkNormalizeMatrixVectors.cxx
>     > Filters\Imaging\vtkPairwiseExtractHistogram2D.cxx
>     > IO\Geometry\vtkMoleculeReaderBase.cxx
>     > Infovis\Core\vtkAdjacencyMatrixToEdgeTable.cxx
>     > Infovis\Layout\vtkIncrementalForceLayout.cxx
>     > Rendering\Context2D\vtkMarkerUtilities.cxx
>     > Rendering\Core\vtkTextMapper.cxx
>     > Rendering\FreeType\vtkMathTextUtilities.cxx
>     > Rendering\FreeType\vtkTextActor.cxx
>     > Views\Infovis\vtkParallelCoordinatesRepresentation.cxx
>     >
>     >
>     > But if I include algorithm (#include <algorithm>) in each cxx,
>     > everything compiles and runs just fine.
>     >
>     > Am I missing any settings or do others experience the same?
>     >
>     > Thanks,
>     > Lars
>     _______________________________________________
>     Powered by www.kitware.com <http://www.kitware.com>
> 
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
> 
>     Please keep messages on-topic and check the VTK FAQ at:
>     http://www.vtk.org/Wiki/VTK_FAQ
> 
>     Follow this link to subscribe/unsubscribe:
>     http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 


More information about the vtkusers mailing list