From: Martin Str|mberg 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 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