f9: x86_64: Missing C++ runtime support for g++ (/usr/bin/g++).

Jakub Jelinek jakub at redhat.com
Thu May 29 22:49:53 UTC 2008


On Fri, May 30, 2008 at 12:37:18AM +0200, Dario Lesca wrote:
> > Compilation of the following test program failed:
> > 
> > ----------------------------------------------------------
> > #include "iostream.h"
> > int main(){ cout << "Hello World!" << endl; return 0;}
> > ----------------------------------------------------------
> > 
> > Usually this is because you do not have a standard C++ library
> > installed on your system or you have installed it in a non-standard
> > location.  If you do not have a C++ library installed, then you must
> > install it.  If it is installed in a non-standard location, then you
> > should configure the compiler so that it will automatically be found.
> > 
> > (For recent gcc releases this is libstdc++, for older gcc - libg++)
> 
> How I can remove this error?

The above is not valid C++98, you need to use
#include <iostream>
using namespace std;
int main() { cout << "Hello World!" << endl; return 0; }

g++34 provides backwards support for deprecated pre-ISO C++ headers,
g++ doesn't any longer.
See http://gcc.gnu.org/gcc-4.3/porting_to.html
"Removal of Pre-ISO headers" for more info.

	Jakub




More information about the fedora-devel-list mailing list