g++ problems

Sean McMahon smcmahon at usgs.gov
Thu Apr 1 11:52:41 EST 2004


Another thing, doesn't return take an argument, return (0);

----- Original Message ----- 
From: "Tom and Esther Ward" <tward1978 at earthlink.net>
To: "Speakup is a screen review system for Linux." <speakup at braille.uwo.ca>
Sent: Wednesday, March 31, 2004 11:50 PM
Subject: Re: g++ problems


> Hi, my answers are below nested in the body of your message.
> 
> ----- Original Message -----
> From: "Kyrath. (AKA Rob)" <kyrath at cox.net>
> To: "Speakup" <speakup at braille.uwo.ca>
> Sent: Wednesday, March 31, 2004 3:44 PM
> 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
> 
> I have never seen this error in gcc/g++, and I can only think of two
> possibilities. One, the wrong arguments were passed to g++. Second, this was
> a bad installation of gcc/g++.
> 
> Is there something that needs to be done to gcc before it becomes fully
> operational?
> 
> No, gcc and g++ should work fine right after the initial installation.
> 
> 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;
> }
> 
> Your code looks fine so far.
> 
> 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?
> 
> Gcc in most cases is backward compatible with older code, but it will send
> several warning messages that the code is deprecated and needs to be
> updated.
> The warnings are usually harmless in nature, but are quite annoying, and as
> a new programmer it is best to use the new standards and not start with
> deprecated material.
> 
> Thanks
> -- Rob
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup




More information about the Speakup mailing list