An Error while compiling vtk

Sathya Krishnamurthy skrishna at cscs.ch
Thu Apr 6 10:50:13 EDT 2000


Hello All

I am trying to compile vtk with

gcc/g++ version 2.95.2
and tcl/tk 8.2 on Sun Ultra-10 with Elite3D graphics card.

I had previously compiled vtk on this system without any problems.. but
then I used gcc/g++ 2.8.0. But currenly I get the following errors.

g++  -ansi -traditional-cpp -Wall -fPIC -DVTK_WORDS_BIGENDIAN
-DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H
-I.  -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging
-DVTK_USE_IMAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib
-DVTK_USE_CONTRIB  -DVTK_USE_OGLR -I/usr/openwin/share/include/
-I/usr/openwin/include  -I./../common -I/usr/local/include
-I/usr/local/include  -I/home/schroede/montnaro/Python-1.4/Include -c
tcl/CommonInit.cxx -o tcl/CommonInit.o
In file included from /usr/local/include/tk.h:81,
                 from vtkTclUtil.h:48,
                 from tcl/CommonInit.cxx:1:
/usr/openwin/share/include/X11/Xlib.h:2063: ANSI C++ forbids declaration
`XSetTransientForHint' with no type
/usr/openwin/share/include/X11/Xlib.h:2071: ANSI C++ forbids declaration
`XActivateScreenSaver' with no type
/usr/openwin/share/include/X11/Xlib.h:2078: ANSI C++ forbids declaration
`XAddHost' with no type
/usr/openwin/share/include/X11/Xlib.h:2086: ANSI C++ forbids declaration
`XAddHosts' with no type
/usr/openwin/share/include/X11/Xlib.h:2093: ANSI C++ forbids declaration
`XAddToExtensionList' with no type
/usr/openwin/share/include/X11/Xlib.h:2100: ANSI C++ forbids declaration
`XAddToSaveSet' with no type

Kindly some on help me on this.

Thanks a lot

Sincerely
Sathya

------------------------------------------------------------------
Sathya Krishnamurthy
Research Scientist  , CSCS
Galleria 2 , Via Cantonale
CH - 6928 , Manno Switzerland
Ph: 41-91-6108260 ----- mobile: 41-76-574-0069
------------------------------------------------------------------
The views, opinions and information contained in this message do not
necessarily reflect the opinions or policies of CSCS, nor does
publication of this information imply an endorsement by CSCS.

--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list