delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/25/13:30:45

From: Martin Str|mberg <ams AT father DOT ludd DOT luth DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compile errors: getopt.h: no such file or dir (ENOENT), etc.
Date: Wed, 25 Jul 2001 10:00:19 +0000 (UTC)
Organization: University of Lulea, Sweden
Lines: 36
Message-ID: <996055219.488837@queeg.ludd.luth.se>
References: <3B5E9536 DOT 30F533BB AT netscape DOT net>
X-Trace: news.luth.se 996055219 6870 130.240.16.109 (25 Jul 2001 10:00:19 GMT)
X-Complaints-To: abuse AT luth DOT se
User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (SunOS/4.1.4 (sun4m))
Cache-Post-Path: queeg.ludd.luth.se!unknown AT father DOT ludd DOT luth DOT se
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

ANW <yellowfurball AT netscape DOT net> wrote:
: Hello. I'm a DJGPP newbie. Just installed DJGPP on my Win98 machine.
: Please pardon me for the length of this message because of the quoted
: screen sessions.

That's ok. Better with too much information than too little.

: Using DJGPP under Win98 (Second Edition), I'm unable to compile one of
: Donald Becker's well-known diagnostic programs for NE2000 compatible
: network interface cards. This is a typical VERBOSE screen session and
: the error messages I got, and I quote:

: J:\junk>gcc -O -Wall -o ne2k-pci-diag ne2k-pci-diag.c -v

[Klippa, klapp, kluppit.]

: ne2k-pci-diag.c:49: getopt.h: No such file or directory (ENOENT)
: ne2k-pci-diag.c:56: sys/io.h: No such file or directory (ENOENT)
: J:\junk>

DJGPP doesn't have those header files. DJGPP do have getopt() so
perhaps you can get away with #including unistd.h as per "info libc a
getopt".

But sys/io.h I don't know what do do with. You could try to comment it
out, but I doubt that'll work.

Your installation looks fine. The problem is that this program is for
Linux so it probably does Linux specific things, so this will be hard
to compile with DJGPP.


Right,

						MartinS

- Raw text -


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