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: <>
References: <20000419034811 DOT 26736 DOT qmail AT hotmail DOT com>
X-Trace: 956132415 5327 (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.


>I am trying to compile a very simple Hello World program, which uses 
>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 
>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 and
use to zip-picker to tell you what files you need.

Alternatively, you could just use C.


- Raw text -

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