g++ problems
Kyrath. (AKA Rob)
kyrath at cox.net
Wed Mar 31 15:44:06 EST 2004
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
More information about the Speakup
mailing list