g++ problems

Sina Bahram sbahram at nc.rr.com
Wed Mar 31 15:59:10 EST 2004


Use g++ not gcc

Gcc is for c and g++ is for c++

Take care,
Sina

No trees were destroyed in sending this message; however, a large number of
electrons were terribly inconvenienced.

-----Original Message-----
From: speakup-bounces at braille.uwo.ca [mailto:speakup-bounces at braille.uwo.ca]
On Behalf Of Kyrath. (AKA Rob)
Sent: Wednesday, March 31, 2004 3:44 PM
To: Speakup
Subject: g++ problems


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
_______________________________________________
Speakup mailing list
Speakup at braille.uwo.ca http://speech.braille.uwo.ca/mailman/listinfo/speakup






More information about the Speakup mailing list