<div dir="ltr">This may be related to <a href="https://github.com/Kitware/VTK/commit/3680d942">https://github.com/Kitware/VTK/commit/3680d942</a><div><br></div><div>On Ubuntu running gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3</div>
<div> VTK_HAS_STD_ISFINITE is undefined. To replicate this, remove the build directory and run cmake again. Cmake is defining VTK_HAS_ISFINITE instead.</div><div><br></div><div>On the Mac I am also getting the same error.</div>
<div><br></div><div>The error trace on Ubuntu is this:</div><div><div>In file included from /home/amaclean/Development/Kitware/src/VTK/Common/Core/vtkAbstractArray.cxx:26:0:</div><div>/home/amaclean/Development/Kitware/src/VTK/Common/Core/vtkMath.h: In static member function ‘static bool vtkMath::IsFinite(double)’:</div>
<div>/home/amaclean/Development/Kitware/src/VTK/Common/Core/vtkMath.h:1295:21: error: ‘isfinite’ was not declared in this scope</div><div>/home/amaclean/Development/Kitware/src/VTK/Common/Core/vtkMath.h:1295:21: note: suggested alternative:</div>
<div>In file included from /home/amaclean/Development/Kitware/build/VTK/Common/Core/vtkMathConfigure.h:24:0,</div><div> from /home/amaclean/Development/Kitware/src/VTK/Common/Core/vtkMath.h:42,</div><div> from /home/amaclean/Development/Kitware/src/VTK/Common/Core/vtkAbstractArray.cxx:26:</div>
<div>/usr/include/c++/4.7/cmath:821:5: note: ‘std::isfinite’</div><div>make[2]: *** [Common/Core/CMakeFiles/vtkCommonCore.dir/vtkAbstractArray.cxx.o] Error 1</div><div>make[1]: *** [Common/Core/CMakeFiles/vtkCommonCore.dir/all] Error 2</div>
<div><br></div><div><br></div><div>On the Mac I am getting a similar result:</div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">[ 18%] Building CXX object Common/Core/CMakeFiles/vtkCommonCore.dir/vtkAbstractArray.cxx.o</div>
<div style="font-family:arial,sans-serif;font-size:13px">In file included from /Users/andrewmaclean/Development/Kitware/src/VTK/Common/Core/vtkAbstractArray.cxx:26:</div><div style="font-family:arial,sans-serif;font-size:13px">
/Users/andrewmaclean/Development/Kitware/src/VTK/Common/Core/vtkMath.h:1269:11: error: </div><div style="font-family:arial,sans-serif;font-size:13px"> use of undeclared identifier 'isinf'</div><div style="font-family:arial,sans-serif;font-size:13px">
return (isinf(x) != 0); // Force conversion to bool</div><div style="font-family:arial,sans-serif;font-size:13px"> ^</div><div style="font-family:arial,sans-serif;font-size:13px">/Users/andrewmaclean/Development/Kitware/src/VTK/Common/Core/vtkMath.h:1282:11: error: </div>
<div style="font-family:arial,sans-serif;font-size:13px"> use of undeclared identifier 'isnan'; did you mean 'std::isnan'?</div><div style="font-family:arial,sans-serif;font-size:13px"> return (isnan(x) != 0); // Force conversion to bool</div>
<div style="font-family:arial,sans-serif;font-size:13px"> ^~~~~</div><div style="font-family:arial,sans-serif;font-size:13px"> std::isnan</div><div style="font-family:arial,sans-serif;font-size:13px">/usr/include/c++/4.2.1/cmath:550:5: note: 'std::isnan' declared here</div>
<div style="font-family:arial,sans-serif;font-size:13px"> isnan(_Tp __f) { return ::__gnu_cxx::__capture_isnan(__f); }</div><div style="font-family:arial,sans-serif;font-size:13px"> ^</div><div style="font-family:arial,sans-serif;font-size:13px">
In file included from /Users/andrewmaclean/Development/Kitware/src/VTK/Common/Core/vtkAbstractArray.cxx:26:</div><div style="font-family:arial,sans-serif;font-size:13px">/Users/andrewmaclean/Development/Kitware/src/VTK/Common/Core/vtkMath.h:1295:11: error: </div>
<div style="font-family:arial,sans-serif;font-size:13px"> use of undeclared identifier 'isfinite'; did you mean 'std::isfinite'?</div><div style="font-family:arial,sans-serif;font-size:13px"> return (isfinite(x) != 0); // Force conversion to bool</div>
<div style="font-family:arial,sans-serif;font-size:13px"> ^~~~~~~~</div><div style="font-family:arial,sans-serif;font-size:13px"> std::isfinite</div><div style="font-family:arial,sans-serif;font-size:13px">
/usr/include/c++/4.2.1/cmath:542:5: note: 'std::isfinite' declared here</div><div style="font-family:arial,sans-serif;font-size:13px"> isfinite(_Tp __f) { return ::__gnu_cxx::__capture_isfinite(__f); }</div><div style="font-family:arial,sans-serif;font-size:13px">
^</div><div style="font-family:arial,sans-serif;font-size:13px">3 errors generated.</div></div><div><br></div><div><br></div><div>Regards</div><div> Andrew</div><div><br></div>-- <br>___________________________________________<br>
Andrew J. P. Maclean<br><br>___________________________________________
</div></div>