Compiler-Errors

Marc Michalewicz Marc.Michalewicz at ascom.ch
Mon Dec 6 13:41:08 GMT 1999


Hello,

i just wnated to compile/install kdevelop 1.0 on a Solaris-2.7 machine
and got several warnings, concerning all the same (missing returntype in
the Xlib-prototypes):

Here an excerpt with a "g++ -" at the end.

(snip)

In file included from highlight.cpp: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/Xlib.h:2100: ANSI C++ forbids declaration
`XAddToSaveSet' with no type
/usr/openwin/include/X11/Xlib.h:2154: ANSI C++ forbids declaration
`XAllowEvents' with no type
/usr/openwin/include/X11/Xlib.h:2160: ANSI C++ forbids declaration
`XAutoRepeatOff' with no type
/usr/openwin/include/X11/Xlib.h:2166: ANSI C++ forbids declaration
`XAutoRepeatOn' with no type
/usr/openwin/include/X11/Xlib.h:2173: ANSI C++ forbids declaration
`XBell' with no type
...
 g++ -v                                             /home/bmichm
Reading specs from
/appl/cygnus/gnupro-99r1/H-sparc-sun-solaris2.7/lib/gcc-lib/sparc-sun-solaris2.7/2.9-gnupro-99r1/specs

gcc version 2.9-gnupro-99r1
...

(snip)

yesterday i compiled and installed the 1.0 Beta4-Version on a Linuxbox
without problems (gcc version egcs-2.91.66 19990314/Linux (egcs 1.1.2
release)

Has anyone here a hint for me what to do ? Do i use the wrong compiller
or did the configurescript use wrong options (ANSI ?) ?

Thanks very much for any help,

Marc






More information about the KDevelop mailing list