delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2017/08/17/12:30:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.99.158.17 with SMTP id s17mr4214625pgd.141.1502986637196;
Thu, 17 Aug 2017 09:17:17 -0700 (PDT)
X-Received: by 10.31.69.82 with SMTP id s79mr56317vka.2.1502986637132; Thu, 17
Aug 2017 09:17:17 -0700 (PDT)
Newsgroups: comp.os.msdos.djgpp
Date: Thu, 17 Aug 2017 09:17:16 -0700 (PDT)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.171.131.169;
posting-account=YyKtWAkAAADhmreXJe3i3Wis_KfHC25j
NNTP-Posting-Host: 108.171.131.169
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <66694c0e-7f93-494b-a566-29cedaebf471@googlegroups.com>
Subject: cc1plus.exe: out of memory ...
From: "Gregg (gt DOT geiger AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Injection-Date: Thu, 17 Aug 2017 16:17:17 +0000
Bytes: 1790
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Sorry if this is a repeat, but my searching is not yielding answer.

A very simple program compiles fine on Win7 using DJGPP GCC 4.73 but not 7.2 (downloaded today using the zip picker).

--- SuperSimple.cpp ---
#include <iostream>
int main() {
  return 0;
}

Compile command from DOS prompt: gpp supersimple.cpp

Error message when compiling with 7.2:
cc1plus.exe: out of memory allocating 2101247 bytes after a total of 54213688 bytes

If the #include statement is commented out, the code compiles without error for both versions.

Based on internet suggestions, the following have been tried without success.
Assure file is saved as UTF-8
-save-temps or -ftrack-macro-expansion=0
unzip32 to prevent long file names

What to do?

Thanks for any help.

- Raw text -


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