Message-ID: <3B600C38.440DA50E@netscape.net> From: ANW Organization: NoneSuch X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Compile errors: getopt.h: no such file or dir (ENOENT), etc. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 31 Date: Thu, 26 Jul 2001 12:29:16 GMT NNTP-Posting-Host: 24.71.165.135 X-Complaints-To: abuse AT home DOT net X-Trace: news1.rdc1.mb.home.com 996150556 24.71.165.135 (Thu, 26 Jul 2001 05:29:16 PDT) NNTP-Posting-Date: Thu, 26 Jul 2001 05:29:16 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks, Eli and Martin, for your various clarifications on DJGPP libraries. I commented out the lines which imported from getopt.h and sys/io.h, but it did not work. So the verdict is pretty much that this particular Linux program (ne2k-pci-diag.c) is incompatible with DJGPP. This brings me to following question: Would it be possible to use DJGPP under Linux and cross-compile the program ne2k-pci-diag.c, targeting the executable for DOS? ANW Eli Zaretskii wrote: > > On Wed, 25 Jul 2001, ANW wrote: > > > > : 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> > > > > > > ... As the first approximation, I'd suggest to #ifdef away > both the line which includes getopt.h and the one which includes > sys/io.h, like this: > > #if 0 > #include > #endif > > and see if the program compiles.