From: Damian Yerrick 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: 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 wrote: >donho AT altern DOT org (Don HO) writes: > >> But it doesn't work with this one : >> >> #include 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/