X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: jimm Newsgroups: comp.os.msdos.djgpp Subject: FreeDOS, cannot open swap file cwsdpmi.swp Date: Wed, 26 Oct 2011 17:25:39 -0700 (PDT) Organization: http://groups.google.com Lines: 38 Message-ID: NNTP-Posting-Host: 24.22.56.37 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1319675139 10442 127.0.0.1 (27 Oct 2011 00:25:39 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 27 Oct 2011 00:25:39 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: d37g2000prg.googlegroups.com; posting-host=24.22.56.37; posting-account=05hOMwoAAAB6R8xtiQKzEljSMzgOhVF1 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe) Bytes: 2325 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am making bootable floppies and a bootable cd-rom. I want to completely eliminate the possibility of CWSDPMI using swap. how do I compile/link/code/whatever my programs so that this is so? I can't expect any hard disks to have a partition on it. c: may be actually an eltorito cdrom, so It may not necessarily be writable. I want to completely rely on RAM, there's plenty of it to go around! gpp -Wall -W -Wextra -v -save-temps -O -s -oa.exe @_TMPSRCQ.LST if not exist a.exe goto skipgp if exist %outfile% del %outfile% if exist a.exe %djpth%\bin\exe2coff a.exe if not exist a goto noagp if not exist %djpth%\bin\cwsdstub.exe goto oopsgp if exist a copy /B %djpth%\bin\cwsdstub.exe+a a2.exe if exist a2.exe move /y a2.exe %outfile% if exist a del a if exist a.exe del a.exe if exist a2.exe del a2.exe :skipgp goto endgp :oopsgp echo ERROR: %djpth%\bin\CWSDSTUB.EXE does not exist. must have this file to build monolithic executables. echo NOTE: I recently discovered that with CWSDSTUB.EXE you don't need CWSDPMI.EXE. @del a.exe goto endgp :noagp echo ERROR: the file a is missing. this is required in order to merge cwsdstub.exe and make a monolithic executable. @del a.exe goto endgp