Date: Wed, 25 Jul 2001 13:49:13 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: ANW cc: djgpp AT delorie DOT com Subject: Re: Compile errors: getopt.h: no such file or dir (ENOENT), etc. In-Reply-To: <3B5E9536.30F533BB@netscape.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 25 Jul 2001, ANW wrote: > 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 > Reading specs from g:/djgpp/lib/gcc-lib/djgpp/2.953/specs [...] > #include <...> search starts here: > g:/djgpp/lib/gcc-lib/djgpp/2.953/include > g:/djgpp/include [...] > End of search list. It seems your DJGPP installation is in good shape. > 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) These error messages are not due to botched installation: DJGPP indeed does not have getopt.h or sys/io.h headers. Do you have any reason to believe that this particular program is compatible with DJGPP? It seems to me it isn't, in which case you will need to modify the sources slightly to get it to compile. > PATH=G:\AMZI4\BIN;F:\EIFFEL45\BENCH\SPEC\WINDOWS\LIB\MSC;F:\BP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;C:\PROGRA~1\OUTLOOK\OFFICE;E:\EMACS20.3.1\BIN;I:\JDK1.3\BIN; > H:\ELJ-WIN32\SMALLEIFFEL\BIN;H:\ELJ-WIN32\LCC\BIN;G:\DJGPP\BIN This is slightly sub-optimal: the DJGPP bin subdirectory should ideally be much closer to the beginning of PATH, to avoid problems with picking wrong versions of the preprocessor, Make, and other utilities. Other than that, your installation is correct.