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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux