delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/01/21:55:53

Date: Sun, 2 Apr 2000 06:08:39 +0600 (LKT)
From: Kalum Somaratna aka Grendel <kalum AT lintux DOT cx>
X-Sender: root AT darkstar DOT grendel DOT net
To: james archer <snowphoton AT mindspring DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Question about DJGPP for DOS
In-Reply-To: <38E60709.DCA794D2@mindspring.com>
Message-ID: <Pine.LNX.4.10.10004020603490.1233-100000@darkstar.grendel.net>
MIME-Version: 1.0
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

On Sat, 1 Apr 2000, james archer wrote:

> I'm a newbie to DJGPP, so this might be a stupid question.  :o)
> 
> I'm trying to compile a shell I've written for DOS.  It compiles fine,
> but when I try to replace command.com with the generated executable, it
> tells me that it can't run in DOS mode.  

This can happen if CWSDPMI.EXE (The DPMI server is not installed).
BTW What _exactly_ was the error message.
If the error message sats something like "This program cannot be run in
DOS mode" then you havent compiled using the DJGPP compiler, and the
executable may be a windows executable, so it is important to know what
exactly the error message is.



>I went to delorie and
> downloaded the zip that has the progs for letting me run it, but in
> order to use those, I have to run them before running my executable.
> This means that I can't run my executable as a shell because I have to
> start command.com and run this other program first.

This may not be necessary. When a djgpp program is run, it automatically
loads cwsdpmi.exe if DPMI services are not present.

So merely specifying "SHELL=C:\DJSHELL.EXE" should be enough.





> 
> Is it because I compiled it on a Windows machine, and then tried to move
> the program to a DOS box?  Or does DJGPP just not handle old-school DOS?

I think most probably this is because of a missing cwsdpmi.exe. please
download cwsdpmi*b.zip from simtel net..

Grendel

Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

- Raw text -


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