X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.59.5.68 with SMTP id ck4mr1792180ved.9.1381955710227; Wed, 16 Oct 2013 13:35:10 -0700 (PDT) X-Received: by 10.182.231.227 with SMTP id tj3mr36075obc.40.1381955709968; Wed, 16 Oct 2013 13:35:09 -0700 (PDT) Newsgroups: comp.os.msdos.djgpp Date: Wed, 16 Oct 2013 13:35:09 -0700 (PDT) In-Reply-To: <6a5bd97a-a320-4b63-b323-ce16243b7d52@googlegroups.com> Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=67.255.122.20; posting-account=TyluQwoAAADlMWw93s-gE-XP8kj6pXif NNTP-Posting-Host: 67.255.122.20 References: <6a5bd97a-a320-4b63-b323-ce16243b7d52 AT googlegroups DOT com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Making a standalone EXE that will work without DJGPP From: Segadude Injection-Date: Wed, 16 Oct 2013 20:35:10 +0000 Content-Type: text/plain; charset=ISO-8859-1 Bytes: 4215 Lines: 109 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r9GKj15k030227 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 Precedence: bulk On Tuesday, October 15, 2013 6:38:17 PM UTC-4, rug DOT DOT DOT AT gmail DOT com wrote: > Hi, > > > > On Monday, October 14, 2013 5:17:27 PM UTC-5, Segadude wrote: > > > > > > Today, I successfully compiled Lua 5.2.2 for MS-DOS using DJGPP. > > > > Any particular reason? LUA_ANSI? Did you know that Juan already > > did a port of that for us? See /beta/v2tk/ : > > > > http://na.mirror.garr.it/mirrors/djgpp/beta/v2tk/lua522b.zip > > > > > I want to make it a standalone EXE so I can distribute it. > > > > You mean bundle the DPMI server? Not needed if you're running > > under DOSEMU, DR-DOS 7.03, OS/2, Win9x, or WinNT (e.g. XP 32-bit). > > Only in raw DOS without CWSDPMI (or similar) already present will > > this be a minor problem. > > > > Though it doesn't hurt either way, 20 kb is pretty small. > > > > > I read > > > that pmode11b.zip is supposed to do it but I don't really understand > > > how to use it. > > > > AFAIK, latest is PMODE/DJ 1.3, see /current/v2misc/ or CWS' homepage: > > > > http://na.mirror.garr.it/mirrors/djgpp/current/v2misc/ > > > > http://homer.rice.edu/~sandmann/ > > http://homer.rice.edu/~sandmann/cwsdpmi/pmodedj.txt > > > > However, PMODE/DJ is darn old, and while I don't fully understand it, > > I don't trust it nearly as much as CWSDPMI r7 (circa 2010). I think > > that was back (pre-r5) before CWSDSTUB existed, so (IMHO) there's > > really no major need for preferring or using PMODE/DJ (that I know of). > > > > > Is there a way to make a standalone EXE that will run > > > by itself without DJGPP being installed? Any help would be greatly > > > appreciated. > > > > DJGPP doesn't have to be installed, only a small DPMI server since all > > v2 programs need DPMI. By default, the stub tries to call CWSDPMI.EXE > > if no other is enabled. If you want to make it not require an external > > DPMI host, you can "exe2coff blah.exe" and then "copy /b cwsdstub.exe > > + blah blah.exe" . > > > > > P.S. DJGPP is great, I love it. Keep up the great work! > > > > It still works, but there isn't a lot of active work being done > > on it. Quite honestly, most developers moved on to greener pastures > > (to put it mildly). I compiled regular Lua 5.2.2 (right from Lua.org) for DOS because I was looking for a Lua port for MS-DOS but couldn't fine one. So I decided to compile it myself. I have a small lua script I want to be able to run on DOS. For my Lua compilation, I want a single EXE that will run in a pure DOS environment without the need for anything else to be installed. Could you elaborate a bit on how to use the cwsdstub? Thanks for all the help you have given me thus far.