delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/26/02:52:56

Date: Thu, 26 Mar 1998 10:52:24 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Curtis, Craig M." <cmc2648 AT LXE DOT com>
cc: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Re: Program too big to fit in memory
In-Reply-To: <c=US%a=_%p=Electromagnetic_%l=NT_EXLXE-980325210747Z-19048@nt_exems.elmg.com>
Message-ID: <Pine.SUN.3.91.980326105205.29215H-100000@is>
MIME-Version: 1.0

On Wed, 25 Mar 1998, Curtis, Craig M. wrote:

> I have compiled the latest version of Python (v1.5) with djgpp(v2.01) on
> a win95 p133.  When I try to execute it, I get:  "Program too big to
> fit in memory" while running in a DOS Box in Win95.

One possible reason for this would be that you clicked on the file
`python' in the file manager.  If so, click on `python.exe' instead.
DOS and Windows don't know how to run the raw COFF image, so they
fail.

If the above doesn't help, I'd guess that your program doesn't have
the DJGPP stub prepended to it.  Without the stub, the program lacks
the DOS exe header, and DOS doesn't know how to run it (it boldly
tries anyway, and you get the error message).

Please describe how did you link the program.  Posting the exact
command line used to link it would be a good beginning.  Usually,
DJGPP prepends the stub automatically, but in your case it somehow
didn't happen.

You can prepend the stub manually with the following command line:

	stubify python

(assuming that the program you produce is called `python').  This
produces `python.exe' which you should be able to run as any other DOS
program.
 
> I have found that it works with go32-v2.  But I have heard that I only
> need go32-v2 outside of win95.

go32-v2 has nothing to do with being in- or outside of Windows.  It
just knows hoe to run DJGPP programs without the stub, while DOS and
Windows 95 don't, that's all.

- Raw text -


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