delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/19/11:43:59

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Troubles!
Date: Wed, 19 Apr 2000 08:20:14 GMT
Organization: always disorganized
Lines: 32
Message-ID: <38fd6c26.2089732@news.freeserve.net>
References: <20000419034811 DOT 26736 DOT qmail AT hotmail DOT com>
NNTP-Posting-Host: modem-107.brown-bird-wrasse.dialup.pol.co.uk
X-Trace: news8.svr.pol.co.uk 956132415 5327 62.136.242.107 (19 Apr 2000 08:20:15 GMT)
NNTP-Posting-Date: 19 Apr 2000 08:20:15 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Paul Edwards wrote:

>This is a multi-part message in MIME format.

Why?

>I am trying to compile a very simple Hello World program, which uses 
>iostream.h.
>
>I have followed the FAQ and I have hopefully set up the environment and 
>paths correctly. These settings are configured in a batch file which I have 
>written.
>
>However, when I come to compile the program, by typing:
>
>gcc -o cprog.exe cprog.c
>
>it repies by saying
>
>cprog.c:1: iostream.h : No such file or directory (ENOENT).

But iostream.h isn't meant for C programs, it's meant for C++ programs.
So you should change the filename to one ending in .cc or .cpp instead
of .c and use gxx instead of gcc.

It looks as if you may not have all the C++ files installed anyway,
in which case you should go to http://www.delorie.com/djgpp/ and
use to zip-picker to tell you what files you need.

Alternatively, you could just use C.

S.

- Raw text -


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