delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/23/08:09:30

Date: Sun, 23 Nov 1997 15:09:20 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Matthew Bennett <bennett AT btinternet DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Large global arrays in C++
In-Reply-To: <01bcf5e7$b71098e0$533463c3@mrbcomp>
Message-ID: <Pine.SUN.3.91.971123150900.19570J-100000@is>
MIME-Version: 1.0

On 20 Nov 1997, Matthew Bennett wrote:

> I know this is a known djgpp c++ bug, and it is apparently meant to be
> fixed in the next version (gcc or gpp 2.8.0 or something).

It's not a bug, it's a feature.  See section 8.14 of the DJGPP FAQ
list (available as v2/faq210b.zip from the same place you get DJGPP)
for an explanation and a way to work around this.

> 2) As large global arrays are needed for many games I'm writing, is there
> any way I can get round this problem?? Surely others must have needed a
> workaround too?

Are you sure you need to compile that game as a C++ program?  This
feature only exists for C++ programs, so you can avoid it by compiling
it as C.

- Raw text -


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