(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) Languages and Compilers :
The compiler can't find iostream.h (or) where are the C++ headers and libraries?
You need to get and install the latest:
  gcc-2.7.2-2b.ppc.rpm
  gcc-c++-2.7.2-2b.ppc.rpm
  libc-devel-5.2.18-5g.ppc.rpm
  libc-include-5.2.18-5g.ppc.rpm
  libc-static-5.2.18-5g.ppc.rpm
  libg++-2.7.1.4-4a.ppc.rpm
  libg++-devel-2.7.1.4-4a.ppc.rpm
from

ftp://ftp.linuxppc.org/linuxppc/redhat/RPMS/ppc/ 
ftp://ftp.mklinux.apple.com/contrib/RPMS/ 

Posted by Clay Booker to mklinux-development-system.
Copied here by jonh@cs.dartmouth.edu.
jonh@cs.dartmouth.edu.
Also, when using C++, be aware that many people reported gcc to be broken with -O2
optimisation and C++.

So, if your C++ executables core dump all the time, try rmoving the -O2 optimisation
flag, or replacing it with -O0 (minus oh zero ;-)
mlan@selection-line.net
[Append to This Answer]
Previous: (Answer) The compiler can't find these libraries: -lsocket -lgen -lnsl -ldl
Next: (Answer) I'm getting link errors on symbols like 'SmcCloseConnection' and 'IceConnectionNumber'.
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=145
[Search] [Appearance]
This is a Faq-O-Matic 2.717d.
Hosted by anduin.org and SourceForge Logo