Re: gcc

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

 



I have to make some assumptions here.

1. You said you used gcc.  To use the c++ compiler you have to call g++.

2. If you used g++, in order to use c++ include files (e.g., <iostream>), you
have to have to put the following line in the code to allow use of the include
files without the .h extension:
using namespace std;


Behemoth8u wrote:

Hi everyone,
I installed Fedora on my computer a few days ago. I figured I would try out the c++ compiler, so I made a simple program and ran gcc on it. However, I get errors about things in the standard library files (<iostream>). Anyone have any suggestions? This is a fresh install.
Thanks for any help!







[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux