From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Header file problem. Help! Date: Wed, 19 Feb 1997 20:42:37 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 45 Message-ID: <330BD63D.4CFF@cs.com> References: <5efrep$qp5 AT news-central DOT tiac DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp220.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Rafe wrote: > > Yesterday, I installed DJGPP for the first time. When I tried to run one > of the test files, the following error messages popped up: > > dostest.c:20: fcntl.h: No such file or directory (ENOENT) > dostest.c:21: malloc.h: No such file or directory (ENOENT) > " 22 string.h: " > " 23 stdio.h: " > " 24 dos.h: " > > When I ran go32_v2.exe, it said: > C:\DJGPP\BIN\GO32-V2.EXE: not COFF > > What does all this mean, and more importantly, how can I fix it? > (By the way, I'm running it in a Win95 dos box if it makes any difference) Make sure that you've set up your environment correctly according to the 'readme.1st' file. Specifically, you must add the C:\DJGPP\BIN directory to your PATH and set the DJGPP environment variable to point to the location of the 'djgpp.env' file. This should solve the header file problem. As for the go32-v2 message, that's more alarming. Your computer may be infected with a virus - I recommend that you immediately scan all your files! The only other possible reason to get that error is that you've somehow got a blank or truncated image attached to the executable, in which case you should try reinstalling. Please download and read the DJGPP Frequently Asked Questions list (v2/faq210b.zip from SimTel), or read it online at . Chapter 6 covers the most common problems encountered when running DJGPP. -- John M. Aldrich * Anything that happens, happens. * Anything that, in happening, causes something else to happen, causes something else to happen. * Anything that, in happening, causes itself to happen again, happens again. * It doesn't necessarily do it in chronological order, though. --- Douglas Adams