delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/14/04:07:58

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: error executing
Date: 14 Mar 1997 03:54:22 GMT
Organization: Oxford University, England
Lines: 64
Message-ID: <5gai5e$5hp@news.ox.ac.uk>
References: <3328299D DOT 3E24 AT mag00 DOT cedi DOT unipr DOT it>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Stefano Brozzi (brozzis AT mag00 DOT cedi DOT unipr DOT it) wrote:
: Hi all,

: I'm a quite new DJGPP user, so please be kind.
: I've read all the FAQs(2.1) but I'm still unable to solve this problem..

: I'm running Win95, P166, 32MB ram, djgpp in a dos box.
: DJGPP is installed correctly, as it compiles without problems many C,
: C++ progs.

: All DJGPP binaries work well, I experienced some problems in a personal
: C++
: project but due to my buggy writings I never bothered anyone for that.
: :(
: But now I've tried to compile the JPEG 6a ditribution. 
: It compiles fastly, without warns, but its large EXEs hang my dos box,
: without any message
: I've tried different configurations for DOS, DOS sessions, tried to
: recompile more than once,
: but the problem is still there.  
: I've read about a buggy DPMI, but I have no idea how to disable it in a
: dos box

From what you've said, it sounds like the problem is in the code you are
compiling, which I'm not familiar with. Is it designed for DJGPP? If so,
make sure it's supposed to work with the version you are using (probably
2.01). Also, do you ever get a stack trace? You imply that you've tried
the program in Win95 DOS box and dedicated DOS mode; if it won't work no
matter what you run it on it's likely to be an incompatibility between the
code and compiler. 

: CWSDPMI complains about ...

:         e:\djgpp\bin>cwsdpmi.exe
:         Protected mode not accessible.

: if in a DOS box (Win DPMI is loaded, cwsdpmi can't exec, correct
: interpretation ?)
: Says nothing in a dos session, but the program still hangs.

: That's all.

This is perfectly normal; Windows is acting as a DPMI host and so CWSDPMI
isn't needed and, as you see, can't be used.

: A curiosity: 
: due to large EXE size, I've tried to use PKLITE.EXE, an EXE 
: compress-but-execute program available at simtel in msdos/execomp/.
: The program does not do what expected, but is without any doubt, the
: fastest
: way the exit win95 ;). Is someone able to explain why ?
: (I've no problem about large EXE files, I've read the docs, I understand
: the
: trade-off, I'm just curious)

This is likely to be interference between the PKLITE stub which
decompresses the file and DJ's stub which bootstraps your COFF-format
executable. If you want to compress your executables in this way, have a
look at the mlp???b.zip package somewhere in the DJGPP distribution on
SimTel (can't remember version number or path; sorry).

-- 
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford

- Raw text -


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