From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,5c666efe108c1065 X-Google-Attributes: gid109fba,public X-Google-Thread: fac41,5c666efe108c1065 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,5c666efe108c1065 X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,bc16c150b1957917 X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,5c666efe108c1065 X-Google-Attributes: gid1108a1,public X-Google-Thread: 114809,5c666efe108c1065 X-Google-Attributes: gid114809,public X-Google-Thread: 1014db,5c666efe108c1065 X-Google-Attributes: gid1014db,public X-Google-Thread: 114917,5c666efe108c1065 X-Google-Attributes: gid114917,public From: Gautier.DeMontmollin@maths.unine.ch (Gautier) Subject: Re: Help you C++ Debuggers! Date: 1997/01/20 Message-ID: <1997Jan20.144447.5581@news>#1/1 X-Deja-AN: 211130670 references: <32DEF075.41C6@bme.ri.ccf.org> organization: University of Neuchatel, Switzerland reply-to: Gautier.deMontmollin@Maths.UniNe.CH newsgroups: comp.lang.c,comp.lang.c++,comp.lang.asm.x86,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object,comp.software-eng Date: 1997-01-20T00:00:00+00:00 List-Id: Macarthur Drake 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 ? ;)-