This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs and kde...


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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]