Mail Archives: djgpp/2000/11/27/11:26:54
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 -