This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs and kde...
- To: egcs at cygnus dot com, egcs-bugs at cygnus dot com
- Subject: egcs and kde...
- From: Bernhard Rosenkraenzer <root at bero-online dot ml dot org>
- Date: Thu, 18 Dec 1997 14:55:36 +0000 (GMT)
- cc: kde-bugs at kde dot org
- Reply-To: egcs at cygnus dot com
Hello all,
The c++ part of egcs is causing a lot of compatibility problems. Is there
an easy way to work around stuff like this:
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/src/qt-1.31/include -mamdk6 -O2 -fomit-frame-pointer -g0 -pipe -s
-c kprocess.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/qt-1.31/include -mamdk6 -O2
-fomit-frame-pointer -g0 -pipe -s -c -fPIC -DPIC kprocess.cpp
kprocess.cpp: In method `bool KProcess::normalExit()':
kprocess.cpp:226: member `status' is a protected member of class
`KProcess'
kprocess.cpp:226: warning: ANSI C++ forbids declaration `__in' with no
type
kprocess.cpp: In method `int KProcess::exitStatus()':
kprocess.cpp:233: member `status' is a protected member of class
`KProcess'
kprocess.cpp:233: warning: ANSI C++ forbids declaration `__in' with no
type
make[2]: *** [kprocess.lo] Error 1
make[2]: Leaving directory `/UW-SCSI/kdelibs/kdecore'
The offending lines in the C code are
bool KProcess::normalExit()
{
return (pid != 0) && (!runs) && (WIFEXITED(status)); /* Line 226 */
}
int KProcess::exitStatus()
{
return WEXITSTATUS(status); /* Line 233 */
}
LLaP
bero