[vtkusers] vtkFastNumericConversion

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Aug 3 23:06:35 EDT 2005


David,

	Can you build VK with those compilers ?
	What I believe is that somewhere in your code you are doing:

#define Round ...

	*before* actually including the vtk header.

HTH,
Mathieu

David Christen wrote:
> When I try to complie my volume rendering application, I get an 
> error-message for the include file vtkFastNumericConversion.h:
> 
> Building object file volViewer.o...
> In file included from 
> /localhost/stow/VTK-cvs/include/vtk/vtkVolumeRayCastMapper.h:29,
>                  from 
> /home/pdavison/pack/vtkMy/src/TestProjects/TestDChristen/volViewer.cxx:20:
> /localhost/stow/VTK-cvs/include/vtk/vtkFastNumericConversion.h:358: 
> error: expected unqualified-id before "const"
> /localhost/stow/VTK-cvs/include/vtk/vtkFastNumericConversion.h:358: 
> error: expected `)' before "const"
> /localhost/stow/VTK-cvs/include/vtk/vtkFastNumericConversion.h:358: 
> error: expected `)' before "const"
> /localhost/stow/VTK-cvs/include/vtk/vtkFastNumericConversion.h:358: 
> error: expected `)' before "const"
> In file included from 
> /home/pdavison/pack/vtkMy/src/TestProjects/TestDChristen/volViewer.cxx:20:
> /localhost/stow/VTK-cvs/include/vtk/vtkVolumeRayCastMapper.h: In 
> function `int vtkRoundFuncMacro(double)':
> /localhost/stow/VTK-cvs/include/vtk/vtkVolumeRayCastMapper.h:56: error: 
> expected unqualified-id before '(' token
> make[5]: *** [volViewer.o] Error 1
> 
> 
> I'm using:
> 
> [vtkmy at localhost src]$ c++ --version
> c++ (GCC) 3.4.4
> 
> [vtkmy at localhost src]$ gcc --version
> gcc (GCC) 3.4.4
> 
> I had the problem with a VTK-cvs version from May. Now I got the very 
> recent cvs version and still have the same error.
> 
> thanks for any help.
> _______________________________________________
> This is the private VTK discussion list. Please keep messages on-topic. 
> Check the 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