delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/27/11:26:54

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problems compiling with Rhide
Date: 27 Nov 2000 15:52:54 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 51
Message-ID: <8vu00m$kjq$1@antares.lu.erisoft.se>
References: <8v73ki$3jr$1 AT newsg3 DOT svr DOT pol DOT co DOT uk> <8vtv88$1o5$1 AT bob DOT news DOT rcn DOT net>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Klytu (jazzyjeff34 AT hotmail DOT com) wrote:

: "Jean Sturtivant" <Jinx AT jsturtivant DOT freeserve DOT co DOT uk> wrote in message
: news:8v73ki$3jr$1 AT newsg3 DOT svr DOT pol DOT co DOT uk...
: > Another new boy having problems...
: >
: > When I try to compile and run my first project I get a huge list of errors
: > relating to my only include -
: > C:/djgpp/lang/cxx/streambuf.h(67) Error: parse error before `streambuf'
: > C:/djgpp/lang/cxx/streambuf.h(126) Error: parse error before `ios'
: > etc etc....
: >
: > What's gone wrong?
: > I've just come straight from Qbasic (!) so you can appreciate my culture
: > shock.
: >
: >
: >
: I am posting the response you emailed me. Please send response to the
: newsgroup.

: >Here's the code, but I'm sure it must be a compiler error..

: >/* Program1 - Rhide compilation test

: >This won't compile in rhide.

: >*/

: >#include <iostream.h>

: >int main()
: >{
: >       cout << "Honestly, a source that's less than 1k long that won't
: > work.";
: >        return 0;
: >}

: >All the errors that occur are pointed at the include code <iostream.h> and
: >it's nested includes. I at a bit of a loss really.

: So am I. There is nothing wrong with you code and it should compile. Maybe
: someone else here could help you.


Are you sure that the C++ file end with a C++ extension (e. g. ".cpp")?


Right,

						MartinS

- Raw text -


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