vtk 2.4/Solaris/gcc 2.95.2 compile problems

Mike Moran Mike.Moran at ee.ed.ac.uk
Mon Jan 24 14:44:39 EST 2000


Hi all. I'm currently trying to compile vtk 2.4 on Solaris with gcc
2.95.2:

foo>uname -a
SunOS foo 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-5_10

I'm getting problems compiling:

In file included from vtkOpenGLRenderWindow.h:53,
                 from vtkRenderWindow.cxx:181:
/usr/openwin/share/include/X11/Xutil.h:363: ANSI C++ forbids declaration
`XClipBox' with no type
...
/usr/openwin/share/include/X11/Xutil.h:879: ANSI C++ forbids declaration
`XUnionRegion' with no type
/usr/openwin/share/include/X11/Xutil.h:903: ANSI C++ forbids declaration
`XXorRegion' with no type
gmake[1]: *** [vtkRenderWindow.o] Error 1
gmake[1]: Leaving directory `/hdir/u60/mm/scratch/vtk2.4/graphics'
gmake: *** [build_graphics] Error 2

Now, I am pretty sure I can solve this problem by telling g++ that it
should regard the included headers as `system' headers (which makes it
is a bit less strict with the wierd X stuff). However, I can't find the
switch for this in the documentation. 

There is a switch (-fpermissive) which makes the compiler generally more
lax, but I'm not sure that would work, and anyway, I like the compiler
being strict. I am going to try the permissive option, but I'm pretty
sure there is a more specific fix for this .....

-- 
Mike Moran, Dept. of Electrical Engineering, The University of Edinburgh
King's Buildings, Mayfield Rd, Edinburgh EH9 3JL


-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list