www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/01/18:59:43

Message-ID: <3B9168C8.FD7BF49@erols.com>
Date: Sat, 01 Sep 2001 19:01:28 -0400
From: Chris Smith <herrsmitty AT erols DOT com>
X-Mailer: Mozilla 4.72 [en]C-CCK-MCD DT (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Compile error:"no such file or directory (ENOENT)"
References: <01C132D2 DOT EB8EA680 AT d180 DOT copper DOT net>
Reply-To: djgpp AT delorie DOT com

Be sure to compile using the gxx command and not gcc. This tells djgpp that you want to use C++ and not just C.
For example, try typing this at the DOS prompt to compile your program:

gxx -Wall -o yourfile.exe yourfile.cpp



Jim & Lori wrote:

> I have downloaded and unzipped all files recommended by the "zip-pick" for a win98 system.  I have followed the instructions on installing Djgpp.  Go32-v2 shows that I have DPMI memory available: 236183KB and DPMI swap space: 88309KB.
>
> When attempting to compile the following program from the book  by Stephen Davis " C++ Weekend Crash Course" I am given the following error message:
>
> Error: iostream.h: No such File or Directory ( ENOENT).
>
> The program is a simple program for converting degrees C to degrees F...here it is
>
> #include <stdio.h>
> #include <iostream.h>
> int main(int nNumberofArgs, char*pszArgs[])
> {
> int nCelsius;
> cout<<"enter degrees c";
> cin >> nCelsius;
>
> int nFactor;
> nFactor=212-32;
>
> int nFahr;
> nFahr=nFactor * nCelsius/100+32;
>
> cout << "fahr value is:";
> cout << nFahr;
>
> return 0;
> }
>
> Again, I have downloaded the recommended files.
>
> Thank you
> J Williamson

- Raw text -


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