delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/04/02/10:30:57

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rugxulo <rugxulo AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: compiler error on Windows 2003
Date: Thu, 2 Apr 2009 08:20:16 -0700 (PDT)
Organization: http://groups.google.com
Lines: 38
Message-ID: <e4f0ea22-d009-4aa0-a3bf-630f3c7a8f28@a7g2000yqk.googlegroups.com>
References: <gr208b$ak2$1 AT news DOT onet DOT pl>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1238685616 18150 127.0.0.1 (2 Apr 2009 15:20:16 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Thu, 2 Apr 2009 15:20:16 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: a7g2000yqk.googlegroups.com; posting-host=65.13.115.246;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
User-Agent: G2/1.0
X-HTTP-UserAgent: Opera/9.64 (Windows NT 6.0; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

On Apr 2, 4:24=A0am, "Tomasz Zbro=BFek" <t DOT zbro DOT  DOT  DOT  AT upos DOT com DOT pl> wrote:
>
> Hi, I have problem with compiling my application on Windows 2003, on XP
> (and also on real MS-DOS with cwsdpmi) it compiles ok, but on 2003, while
> compiling one of the source files I get:
>
> cc1plus.exe: out of memory allocating 65536 bytes after a total of 238753=
60
> bytes
>
> I suppose it's because of different DPMI on XP and 2003.
> Do you know what is the reason of this error and how to solve the problem=
 ?
> Or where can I read something on this ? I can't find any information abou=
t
> such problem.

Assuming you have all the MS updates (e.g. SP2), it's probably fixed
just like Vista by setting the following registry entry:

HKLM\System\CurrentControlSet\Control\Wow\DpmiLimit

(REG_DWORD) is the value of memory you want in bytes.  Any value less
than 32 MB will be raised to 32 MB.

Otherwise, if that doesn't work, you'll have to use NTDPMIX (put
the .DLL in %WINDIR%\SYSTEM32 and run the .EXE from CLI when needed):

http://www.japheth.de/Download/NTDPMIX.zip        (w/ srcs)

Or just lower your optimization level to -O and use -Wl,--reduce-
memory-overheads ... or run under QEMU or dual boot FreeDOS or try
DOSEMU under Linux (but edit .dosemurc first!) or try DOSBox (edit
dosbox.conf!) or build a Cygwin-hosted cross compiler or try OS/2 (or
buy eCS) or use an old Win9x machine or e-mail it to me and I'll
compile it or .... (Did I leave any stone unturned? lol)      :-)

- Raw text -


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