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

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Reply via email to