Date: Thu, 26 Jul 2001 16:35:36 +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: <3B600C38.440DA50E@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 Thu, 26 Jul 2001, ANW wrote: > 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. Are you sure you didn't jump to conclusions too quickly? Maybe some not too complex changes to the program is all you need to get it to build? What were the error messages you saw when you commented away these two headers? > 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? As Martin explained, this won't help: the cross-compilation environment still lacks those two headers, and all the library functions which come with them.