g++ problems

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

 



Hi,

A few of you have been trying to help me get going with compiling C++ code, but so far there's been no joy.

The messages I'm getting are scrolling off the screen, but quite a few of them refer to:
/usr/include/c++/3.2.3/i486-slackware-linux/bits/gthr-default.h

Is there something that needs to be done to gcc before it becomes fully operational?

Here's a copy of the code I last tried to compile:

#include <iostream>
using namespace std;

int main()
{
   cout << "Hello World!\n";
   return 0;
}

Also, I was informed by a few of you that the modern C++ uses "iostream" with a "using namespace std;" instead of the "iostream.h" for the include.
Does this mean that gcc is not backward compatible and will not compile older source code without modifications?

Thanks
-- Rob


[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux