delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/07/22:00:19

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: My GCC does not compile the C++ source
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <dgmuos8rb23v40a2b517dj7isnbdrpmre3@4ax.com>
References: <398f215c DOT 35904767 AT news DOT free DOT fr> <833dkgwzxb DOT fsf AT mercury DOT bitbucket>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 28
X-Trace: /KHlxNEzbTXnjlMf3BjB/vn/I7iNEzTbWxa9QVJx31H+YbglxO6W1ILAy2EKhgQsDZQJo/YKmxfm!Bs+cCUdJFySMp1Q0IBHJ0FtT3BaxnauloRxnS7tR2JljuN/5PWqWN3Yc0TYFqkqbjzBbZbiNtDfF!fcAP
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Tue, 08 Aug 2000 00:53:07 GMT
Distribution: world
Date: Tue, 08 Aug 2000 00:53:07 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On 07 Aug 2000 13:59:12 -0700, Nate Eldredge <neldredge AT hmc DOT edu>
wrote:

>donho AT altern DOT org (Don HO) writes:
>
>> But it doesn't work with this one :
>> 
>> #include <iostream>

   using namespace std;

>> int main() {
>>   int x;
>>   cin >> x;
>>   cout << "Hello, World! I am " << x << " Today!" << endl;
>> }
>
>Use the command `gpp' to compile C++, instead of `gcc'.

That, and you forgot to `using' the `std' namespace.

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019