Date: Thu, 26 Mar 1998 10:52:24 +0300 (IDT) From: Eli Zaretskii To: "Curtis, Craig M." cc: "'djgpp AT delorie DOT com'" Subject: Re: Program too big to fit in memory In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.