[vtkusers] Error in an online VTK-exampley

David Doria daviddoria+vtk at gmail.com
Mon Dec 28 11:22:29 EST 2009


On Mon, Dec 28, 2009 at 11:08 AM, Benjamin Frigan
<frigan at itap.physik.uni-stuttgart.de> wrote:
> Hi,
> I was looking at the following example "Color a mesh by height" on
> http://www.vtk.org/Wiki/VTK_Examples_Color_a_mesh_by_height
> With 'cmake' I don't get any errors. But after that with 'make' I get:
>
> [100%] Building CXX object CMakeFiles/ColoredElevationMap.dir/ColoredElevationMap.cxx.o
> /home/benjamin/Desktop/VTK_EXAMPLES_WEB/ColoredElevationMap.cxx:10:25: error: vtkstd/limits: No such
> file or directory
> /home/benjamin/Desktop/VTK_EXAMPLES_WEB/ColoredElevationMap.cxx: In function ‘int main(int, char**)’:
> /home/benjamin/Desktop/VTK_EXAMPLES_WEB/ColoredElevationMap.cxx:38: error: ‘numeric_limits’ is not a
> member of ‘std’
> /home/benjamin/Desktop/VTK_EXAMPLES_WEB/ColoredElevationMap.cxx:38: error: expected primary-expression
> before ‘double’
> /home/benjamin/Desktop/VTK_EXAMPLES_WEB/ColoredElevationMap.cxx:38: error: expected ‘,’ or ‘;’ before
> ‘double’
> /home/benjamin/Desktop/VTK_EXAMPLES_WEB/ColoredElevationMap.cxx:39: error: ‘numeric_limits’ is not a
> member of ‘std’
> /home/benjamin/Desktop/VTK_EXAMPLES_WEB/ColoredElevationMap.cxx:39: error: expected primary-expression
> before ‘double’
> /home/benjamin/Desktop/VTK_EXAMPLES_WEB/ColoredElevationMap.cxx:39: error: expected ‘,’ or ‘;’ before
> ‘double’
> make[2]: *** [CMakeFiles/ColoredElevationMap.dir/ColoredElevationMap.cxx.o] Error 1
> make[1]: *** [CMakeFiles/ColoredElevationMap.dir/all] Error 2
> make: *** [all] Error 2
>
>
> Can anyone help me with that?
>
> Best,
> Ben

Ben,

I just compiled it and it works on my machine. What operating system
and compiler are you using?

All,
I thought the whole idea of
vtkstd::numeric_limits
and
#include <vtkstd/limits>

was to avoid issues like this?

Thanks,

David



More information about the vtkusers mailing list