Mail Archives: djgpp/1996/11/03/07:41:32
Derek Owens wrote:
>
> Hey, folks,
> I've been developing some code with djgpp, compiling and
> running it all under Win95. I tried booting to DOS 6.2 and couldn't
> get anything to run. I loaded CWSDPMI, but no programs compiled
> with djgpp would run. They all say OMPT=: and stop immediately.
> Any help would be appreciated.
This is caused by a bug in DOS that manifests only if you do a clean
boot without a CONFIG.SYS or AUTOEXEC.BAT file. You can see the problem
by typing 'set' from the DOS prompt; you should see an environment
variable that simply says "PATH=". Actually, this is both a bug in DOS
and a bug in the DJGPP startup code; there are three ways to fix it:
1) Set a PATH variable; any PATH variable. This is also necessary so
that DJGPP can find all its files; see the comment below.
2) Create CONFIG.SYS and AUTOEXEC.BAT files for your DOS boot. They
don't have to contain anything; simply having them there is enough (but
see the comment below).
3) Install the latest version of DJGPP, v2.01. The quirk in the loader
code that caused this DOS bug to manifest has been corrected, so your
programs should work properly no matter what.
NOTE: To run DJGPP correctly, you _must_ have your DJGPP /bin directory
in the PATH anyways, so I recommend that you create an AUTOEXEC.BAT and
put a PATH statment in there which has at least that in it. If you are
booting from a floppy, you should create an AUTOEXEC.BAT on it with a
PATH statement. Something like:
PATH C:\DOS;C:\WINDOWS;C:\DGJPP\BIN
should suffice; replace the C:\DJGPP\BIN with where you actually
installed DJGPP.
HTH!
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| * Proud user of DJGPP! * | http://www.cs.com/fighteer |
| ObJoke: If Bill Gates were a robber, not only would he |
| shoot you, but he'd send you a bill for the bullets. |
---------------------------------------------------------------------
- Raw text -