Hi,
i just tried to compile lyx1.0.3 or lyx1.0.4pre6 on a Solaris 7 box with
g++ 2.95.1, but it fails to compile. With
the former version of gcc 2.8.1 it worked, but now i got:

g++ -c -g -O2 -I. -I. -I../images   -I/usr/openwin/include
-DLYX_DIR=\"/usr/local/share/lyx\" -DTOP_SRCDIR=\"..\"
-DLYX_NAME=\"lyx\" ../src/lyx_main.C
In file included from /usr/local/include/forms.h:983,
                 from ../src/main.C:12:
/usr/openwin/include/X11/Xlib.h:2063: ANSI C++ forbids declaration
`XSetTransientForHint' with no type
/usr/openwin/include/X11/Xlib.h:2071: ANSI C++ forbids declaration
`XActivateScreenSaver' with no type
/usr/openwin/include/X11/Xlib.h:2078: ANSI C++ forbids declaration
`XAddHost' with no type
/usr/openwin/include/X11/Xlib.h:2086: ANSI C++ forbids declaration
`XAddHosts' with no type
/usr/openwin/include/X11/Xlib.h:2093: ANSI C++ forbids declaration
`XAddToExtensionList' with no type
[...]
/usr/openwin/include/X11/Xutil.h:871: ANSI C++ forbids declaration
`XUnionRectWithRegion' with no type
/usr/openwin/include/X11/Xutil.h:879: ANSI C++ forbids declaration
`XUnionRegion' with no type
/usr/openwin/include/X11/Xutil.h:903: ANSI C++ forbids declaration
`XXorRegion' with no type
In file included from /usr/local/include/forms.h:987,
                 from ../src/lyx_gui_misc.h:17,
                 from ../src/lyx_main.C:25:
/usr/openwin/include/X11/Xresource.h:249: ANSI C++ forbids declaration
`XrmQGetResource' with no type
gmake[1]: *** [main.o] Error 1

Any suggestions?

Thanks 
 Chris
-- 
Christoph M. Friedrich        | mailto:[EMAIL PROTECTED] 
Gesellschaft für Modulfermenterbau mbH (GfM mbH) |
http://www.tussy.uni-wh.de/~chris
Alfred-Herrhausen Str. 44 ; D-58455 Witten, Germany

Reply via email to