egcs and kde...

Bernhard Rosenkraenzer root@bero-online.ml.org
Thu Dec 18 06:56:00 GMT 1997


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






More information about the Gcc mailing list