www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/01/10:47:54

Message-ID: <01C132D2.EB8EA680@d180.copper.net>
From: Jim & Lori <The_Williamsons AT copper DOT net>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Compile error:"no such file or directory (ENOENT)"
Date: Sat, 1 Sep 2001 00:56:06 -0400
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id KAA26222
Reply-To: djgpp AT delorie DOT com

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