[vtk-developers] VTK 5.10 build error on mac

Ho Cheung hocheung20 at gmail.com
Fri Aug 17 08:47:19 EDT 2012


Hi Fetzer,

I've noticed the same exact error, the clang error message gives a good clue :) 

/Volumes/Macintosh_HD_2/projects/mitk/Bugsquashing/bin/VTK-src/GUISupport/Qt/Chart/vtkQtBarChart.cxx:428:11: error: use of undeclared identifier 'isnan'; did you mean 'std::isnan'?

Try putting in the std:: in front of the isnan.

I find it odd you experienced the same problem with GCC though, my compiler has no qualms with the missing std:: . How are you forcing make to use GCC instead of Clang?

P.S. Pure gcc is gone in Xcode 4.2+, it was replaced with gcc-llvm which is GCC parser with LLVM code generator.

Regards,

Ho Cheung
Research Assistant - University of Houston
hocheung20 at gmail.com
(832) 215-6347

On Aug 17, 2012, at 3:24 AM, "Fetzer, Andreas" <a.fetzer at Dkfz-Heidelberg.de> wrote:

> Hi,
> 
> today I switched on my Mac (10.7) to VTK 5.10. Compiling it with both gcc and clang delivers me a build error. Here is the stack trace:
> 
> [ 21%] Building C object Utilities/vtkpng/CMakeFiles/vtkpng.dir/pngrutil.c.o
> Scanning dependencies of target vtktiff
> /Volumes/Macintosh_HD_2/projects/mitk/Bugsquashing/bin/VTK-src/GUISupport/Qt/Chart/vtkQtBarChart.cxx:428:11: error: use of undeclared identifier 'isnan'; did you mean 'std::isnan'?
>     if (isnan(py))
>         ^~~~~
>         std::isnan
> /usr/include/c++/4.2.1/cmath:550:5: note: 'std::isnan' declared here
>   isnan(_Tp __f) { return ::__gnu_cxx::__capture_isnan(__f); }
>   ^
> [ 21%] Building C object Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5Abtree2.c.o
> [ 21%] 1 error generated.
> Building C object Utilities/vtkpng/CMakeFiles/vtkpng.dir/pngvcrd.c.o
> make[5]: *** [GUISupport/Qt/Chart/CMakeFiles/vtkQtChart.dir/vtkQtBarChart.cxx.o] Error 1
> make[4]: *** [GUISupport/Qt/Chart/CMakeFiles/vtkQtChart.dir/all] Error 2
> make[4]: *** Waiting for unfinished jobs....
> 
> Is this a know issue? I didn't find anything when I search for it. Any ideas?
> 
> Thanks very much,
> 
> Andreas
> 
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
> 




More information about the vtk-developers mailing list