www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/11/03:20:31

Date: Thu, 11 Feb 1999 10:17:34 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Luke Ward <lukeaw AT yahoo DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: program compile problem
In-Reply-To: <19990211012239.25650.rocketmail@send101.yahoomail.com>
Message-ID: <Pine.SUN.3.91.990211101632.7662O-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Wed, 10 Feb 1999, Luke Ward wrote:

> Now here is the problem, when i type gcc myfile.c -o myfile.exe
> where myfile is the name of my file, it tells me this:
> 
> myfile.c:9:utmp.h:no such file or directory(ENOENT)
> myfile.c:12:lastlog.h:no such file or directory(ENOENT)

Your DJGPP setup appears to be correct.  These are real problems with
the program you are trying to compile.  The program relies on header
files which are present on some Unix systems.  DJGPP doesn't have those
headers because it doesn't support the underlying functionality.

I don't know whether the program will be of any use without the
functionality declared in those two headers.  You can try to ifdef
away these two headers (and any code that uses functions from these
two headers), like this:

  #ifndef __DJGPP__
  #include <utmp.h>
  #include <lastlog.h>
  #endif

- Raw text -


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