From: Gautier.DeMontmollin@maths.unine.ch (Gautier)
Subject: Re: Help you C++ Debuggers!
Date: 1997/01/20
Date: 1997-01-20T00:00:00+00:00 [thread overview]
Message-ID: <1997Jan20.144447.5581@news> (raw)
In-Reply-To: 32DEF075.41C6@bme.ri.ccf.org
Macarthur Drake <drake@bme.ri.ccf.org> writes:
> I am in the mist of completing a major piece of code in C++. However I
> keep comming across a particularly difficult bug. Can you help?
>
> I am simply trying to declare a three D array:
>
>
> float objects[9000][10][10];
>
> However, sometimes while compiling I get a strange compilation error
> like one of the following:
>
> 1. segmentation violation
>
The C compilers are known to have problems with multi-dim arrays.
Remember that C is near to a macro assembler (-> segmentation...)!
Remedy:
1.
Make an 1-dim array and handle the 3 dims with multiplications
2.
Download a good Ada compiler... N.B.: your message was posted in
comp.lang.ada . Was it premonitory ? ;)-
next prev parent reply other threads:[~1997-01-20 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-16 0:00 Help you C++ Debuggers! Macarthur Drake
1997-01-19 0:00 ` Tore Lund
[not found] ` <32E4EC1B.748E@acm.org>
1997-01-23 0:00 ` Tansel Ersavas
1997-01-23 0:00 ` Danette & Murray Root
1997-01-23 0:00 ` Tansel Ersavas
[not found] ` <01bc093e$9992fa60$966d6f9e@Defualt.DVRD.CDC.GOV>
1997-01-24 0:00 ` Tore Lund
1997-01-25 0:00 ` Lawrence Kirby
1997-01-20 0:00 ` Gautier [this message]
1997-01-20 0:00 ` Tanmoy Bhattacharya
1997-01-21 0:00 ` Chris Engebretson
1997-01-21 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-01-21 0:00 ` Bradley A. Burns
1997-01-21 0:00 ` Chris Engebretson
1997-01-21 0:00 ` David Emery
1997-01-22 0:00 ` David Emery
1997-01-22 0:00 ` Michael Chapman
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox