delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/26/08:30:07

Message-ID: <3B600C38.440DA50E@netscape.net>
From: ANW <yellowfurball AT netscape DOT net>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 1010725142534 DOT 15699F-100000 AT is>
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>
> > >
> >
<snip>
> ...  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 <getopt.h>
> #endif
> 
> and see if the program compiles.

- Raw text -


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