delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/04/11:18:58

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: making c++ stuff in rhide
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <e0dijsg64j6lmhp8ugfj3ikbcdpmdfd875@4ax.com>
References: <Op5_4.33$Ov1 DOT 1381 AT nsw DOT nnrp DOT telstra DOT net>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 27
X-Trace: /K49oEF3ASRwqcPj2WHWqdlMC9D2S+OnNfmsJllr7Lc53SayUi4BKusShCOVnjXikAz7yjr7TtFH!SS5sQbTB9wUsy4faSLeSwA7sUG1EnoZlHhR0XI7J8WzuCf5J4w/WXhGpHQqvNxwVvaUkppA1ikt0!BGk=
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: Sun, 04 Jun 2000 14:30:11 GMT
Distribution: world
Date: Sun, 04 Jun 2000 14:30:11 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sat, 3 Jun 2000 18:53:14 +0800, "Paul Cechner"
<paul AT ibc DOT com DOT au DOT NOSPAM> wrote:

>i am using rhide, and cant get c++ programs to run...
>
>when i try :using namespace std;

Delete the colon before `using'.

#include <iostream>
#include <iomanip>
#include <string>
using namespace std;

>i get the compile error: parse error before 'namespace'
>and when i try: #include <iostream.h>
>i get the compile error: iostream.h: no such file or directory

Are you using .c as the extension?  If so, use .cpp or .cc

-- 
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