[vtkusers] Compile Problem with gcc-3.2
Rainer Sabelka
sabelka at iue.tuwien.ac.at
Thu Nov 21 09:16:25 EST 2002
Today I tried to compile the latest CVS version of vtk with gcc-3.2 (on a
Suse8.1 System) with Python and tcl/tk bindings enabled.
Compilation of vtkTkWidgetsInit.cxx failed with an error message (attached).
So I inserted some "const" statements in the declaration of the offending
arguments and got rid of that error. I'll also attach the modified version of
vtkTkWidgetsInit.cxx.
Cheers,
Rainer
-------------------------------------------------------------------
c++ -DvtkRenderingPythonTkWidgets_EXPORTS -fPIC
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Rendering
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Rendering
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Hybrid
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Patented
-I/.automount/in14/root/export/users2/sabelka/src/VTK-build-linux-gcc-3.2
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Common
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Filtering
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Imaging
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Graphics
-I/.automount/in14/root/export/users2/sabelka/src/VTK/IO
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Utilities/zlib
-I/.automount/in14/root/export/users2/sabelka/src/VTK-build-linux-gcc-3.2/Utilities/zlib
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Utilities/png
-I/.automount/in14/root/export/users2/sabelka/src/VTK-build-linux-gcc-3.2/Utilities/png
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Utilities/jpeg
-I/.automount/in14/root/export/users2/sabelka/src/VTK-build-linux-gcc-3.2/Utilities/jpeg
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Utilities/tiff
-I/.automount/in14/root/export/users2/sabelka/src/VTK-build-linux-gcc-3.2/Utilities/tiff
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Utilities/expat
-I/.automount/in14/root/export/users2/sabelka/src/VTK-build-linux-gcc-3.2/Utilities/expat
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Common/Testing/Cxx
-I/usr/include/python2.2
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Utilities/freetype/include
-I/.automount/in14/root/export/users2/sabelka/src/VTK-build-linux-gcc-3.2/Utilities/freetype
-I/.automount/in14/root/export/users2/sabelka/src/VTK/Utilities/ftgl/src
-I/.automount/in14/root/export/users2/sabelka/src/VTK-build-linux-gcc-3.2/Utilities/ftgl
-I/usr/X11R6/include -c
/.automount/in14/root/export/users2/sabelka/src/VTK/Rendering/vtkTkWidgetsInit.cxx
-o vtkTkWidgetsInit.o
In file included from /usr/include/g++/backward/strstream:51,
from
/.automount/in14/root/export/users2/sabelka/src/VTK/Common/vtkSystemIncludes.h:46,
from
/.automount/in14/root/export/users2/sabelka/src/VTK/Common/vtkIndent.h:27,
from
/.automount/in14/root/export/users2/sabelka/src/VTK/Common/vtkObjectBase.h:46,
from
/.automount/in14/root/export/users2/sabelka/src/VTK/Common/vtkObject.h:44,
from
/.automount/in14/root/export/users2/sabelka/src/VTK/Rendering/vtkImageViewer.h:32,
from
/.automount/in14/root/export/users2/sabelka/src/VTK/Rendering/vtkTkImageViewerWidget.h:34,
from
/.automount/in14/root/export/users2/sabelka/src/VTK/Rendering/vtkTkWidgetsInit.cxx:21:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file
includes at least one deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples
include substituting the <X> header for the <X.h> header for C++ includes, or
<sstream> instead of the deprecated header <strstream.h>. To disable this
warning use -Wno-deprecated.
/.automount/in14/root/export/users2/sabelka/src/VTK/Rendering/vtkTkWidgetsInit.cxx:
In
function `int Vtkrenderingpythontkwidgets_Init(Tcl_Interp*)':
/.automount/in14/root/export/users2/sabelka/src/VTK/Rendering/vtkTkWidgetsInit.cxx:63:
invalid
conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int
(*)(void*, Tcl_Interp*, int, const char**)'
/.automount/in14/root/export/users2/sabelka/src/VTK/Rendering/vtkTkWidgetsInit.cxx:65:
invalid
conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int
(*)(void*, Tcl_Interp*, int, const char**)'
/.automount/in14/root/export/users2/sabelka/src/VTK/Rendering/vtkTkWidgetsInit.cxx:68:
invalid
conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int
(*)(void*, Tcl_Interp*, int, const char**)'
make[3]: *** [vtkTkWidgetsInit.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Rendering] Error 2
make: *** [default_target] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkTkWidgetsInit.cxx
Type: text/x-c++src
Size: 2411 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021121/ffedb8b3/attachment.cxx>
More information about the vtkusers
mailing list