ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/03/07:41:32

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: error: OMPT=:
Date: Sun, 03 Nov 1996 03:44:32 -0800
Organization: Three pounds of chaos and a pinch of salt
Lines: 46
Message-ID: <327C85A0.2CBB@cs.com>
References: <55gqvk$bhk AT camel0 DOT mindspring DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp101.cs.com
Mime-Version: 1.0
To: xenophon AT atl DOT mindspring DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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