Compiler-Errors, next one
Marc Michalewicz
Marc.Michalewicz at ascom.ch
Mon Dec 6 18:08:59 GMT 1999
Marc Michalewicz wrote:
> 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
sorry for this inconvenience, i removed the /usr/openwin/include -I and it worked (the Xlib was an old
one) BUT an error which indeed seems to be serious is:
(snip)
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/kde/include -I/usr/local/qt/include -Wall -c
kdlgedit.cpp
kdlgloader.h: In function `bool loadKDlgLdrLibrary()':
In file included from kdlgedit.cpp:41:
kdlgloader.h:77: ANSI C++ forbids cast to non-reference type used as lvalue
kdlgloader.h:78: ANSI C++ forbids cast to non-reference type used as lvalue
kdlgloader.h:79: ANSI C++ forbids cast to non-reference type used as lvalue
kdlgloader.h:80: ANSI C++ forbids cast to non-reference type used as lvalue
kdlgloader.h:81: ANSI C++ forbids cast to non-reference type used as lvalue
kdlgloader.h:82: ANSI C++ forbids cast to non-reference type used as lvalue
kdlgloader.h:83: ANSI C++ forbids cast to non-reference type used as lvalue
(snip)
The line on which it appears is:
#define LOAD_LIB_FNC(fncname, fncptr) \
if (!fncptr) { (void *)fncptr = dlsym(KDlgLdr_Library, fncname); \
if (!fncptr) { warning("Getting dialog loader library method failed. (%s)",dlerror()); return
false; } }
77: LOAD_LIB_FNC(FNC_KDLGLDR_INIT, KDlgLdr_Init)
78: LOAD_LIB_FNC(FNC_KDLGLDR_DELETE, KDlgLdr_Delete)
79: LOAD_LIB_FNC(FNC_KDLGLDR_OPENDLG, KDlgLdr_OpenDialog)
80: LOAD_LIB_FNC(FNC_KDLGLDR_FREEDLG, KDlgLdr_FreeDialog)
81: LOAD_LIB_FNC(FNC_KDLGLDR_GETITEMPTRNAME, KDlgLdr_GetItemPtrName)
82: LOAD_LIB_FNC(FNC_KDLGLDR_GETITEMPTRVARNAME, KDlgLdr_GetItemPtrVarName)
83: LOAD_LIB_FNC(FNC_KDLGLDR_SETBEHAVIOUR, KDlgLdr_SetBehaviour)
It seems that here is something wrong with this macro, can anybody help ?
Except this file there only One other file seems to be with problems, but they are similar. So i look
forward to have a running kdevelop here soon.
Thanks in advance,
Marc
More information about the KDevelop
mailing list