A problem with Sun's Xlib.h headers but its g++ giving the error. You
can get around this by either fixing the Xlib headers (fairly
trivial) or using the flag -fpermissive. Take a look at the notes at
<http://www.opendx.org/compiling-dx.html>.
David
Hello,
I'm a newbie trying to build OpenDX version 4.1.3 on a Sun SPARC (Solaris
2.8). I've installed OpenGL (v1.2.2)
and GCC v3.0.1. I'm getting g++ compile errors whenever Xlib.h is
included. The error is "ISO C++ forbids
declaration with no type", and occurs on each X prototype in Xlib.h, such
as:
extern XAddHosts(
#if NeedFunctionPrototypes
Display*,
XHostAddress*,
int
#endif
);
I don't know if this is a problem with OpenDX, or with my GCC
configuration/installation. The version of X-Window is
X11R6, that came preloaded from SUN.
Anyone seen this before?
Thanks,
Chris Gilbert
--
.............................................................................
David L. Thompson The University of Montana
mailto:[EMAIL PROTECTED] Computer Science Department
http://www.cs.umt.edu/u/dthompsn Missoula, MT 59812
Work Phone : (406)257-8530