[vtkusers] vtkToolkits.h in vtk 4.0

Joannis DEMAY jolefou at afrodisiak.net
Fri Aug 16 15:23:06 EDT 2002


Hi,
    i've some warnings i can't understand :

In file included from
/giref/logiciels/vtk4.0/include/vtkXOpenGLRenderWindow.h:57,
                  from vtkQtRenderWindow.h:44,
                  from MOModuleFenetreVTK_Qt.cc:48:
/giref/logiciels/vtk4.0/include/vtkToolkits.h:15: warning:
`VTK_USE_OGLR' redefined
*Initialization*:1: warning: this is the location of the previous
definition
In file included from
/giref/logiciels/vtk4.0/include/vtkXOpenGLRenderWindow.h:57,
                  from vtkQtRenderWindow.h:44,
                  from DiaControlesCamera.cc:44:
/giref/logiciels/vtk4.0/include/vtkToolkits.h:15: warning:
`VTK_USE_OGLR' redefined
*Initialization*:1: warning: this is the location of the previous
definition
In file included from
/giref/logiciels/vtk4.0/include/vtkXOpenGLRenderWindow.h:57,
                  from vtkQtRenderWindow.h:44,
                  from vtkQtRenderWindow.cc:27:
/giref/logiciels/vtk4.0/include/vtkToolkits.h:15: warning:
`VTK_USE_OGLR' redefined
*Initialization*:1: warning: this is the location of the previous
definition
In file included from
/giref/logiciels/vtk4.0/include/vtkXOpenGLRenderWindow.h:57,
                  from vtkQtRenderWindow.h:44,
                  from mvtkQtRenderWindow.cc:16:
/giref/logiciels/vtk4.0/include/vtkToolkits.h:15: warning:
`VTK_USE_OGLR' redefined
*Initialization*:1: warning: this is the location of the previous
definition
gmake[1]: Entering directory
`/home/cmpgiref/compilation_MEFPP_egcs/COMPILE_AUTO/InterfaceQtVTK/src/interface/VTK'

they seem to come from vtkToolkits.h who has no "#ifndef  ...  #endif"
around the "#define VTK_USE_OGLR" so that the macro is redefined
frequently whereas there is no "#ifndef  ...  #endif" around the body of
".h" . I don't understand how to remove these warnings as my boss
forbids me to change "vtkToolkits.h". Which compilation flag do i have
to set on?

thx

Joannis DEMAY




More information about the vtkusers mailing list