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.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,5c666efe108c1065,start X-Google-Attributes: gidfac41,public X-Google-Thread: 109fba,5c666efe108c1065,start X-Google-Attributes: gid109fba,public X-Google-Thread: f5d71,5c666efe108c1065,start X-Google-Attributes: gidf5d71,public X-Google-Thread: 103376,5c666efe108c1065,start X-Google-Attributes: gid103376,public X-Google-Thread: 114917,5c666efe108c1065,start X-Google-Attributes: gid114917,public X-Google-Thread: 1108a1,5c666efe108c1065,start X-Google-Attributes: gid1108a1,public X-Google-Thread: 114809,5c666efe108c1065,start X-Google-Attributes: gid114809,public X-Google-Thread: 1014db,5c666efe108c1065,start X-Google-Attributes: gid1014db,public From: Macarthur Drake Subject: Help you C++ Debuggers! Date: 1997/01/16 Message-ID: <32DEF075.41C6@bme.ri.ccf.org>#1/1 X-Deja-AN: 210871924 cc: drake@bme.ri.ccf.org content-type: text/plain; charset=us-ascii organization: Biomedical Engineering, Cleveland Clinic Foundation mime-version: 1.0 newsgroups: comp.lang.c,comp.lang.c++,comp.lang.java,comp.lang.asm.x86,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object,comp.software-eng x-mailer: Mozilla 2.01 (X11; I; IRIX 5.3 IP22) Date: 1997-01-16T00:00:00+00:00 List-Id: 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 2. ld: Can't have archive/object only 0 bytes long: displayer3.o 3. ld: Fatal error in writing to final object file (<) Fatal error in writing to final object file (<) 16.983u 5.929s 1:09.16 33.1% 0+0k 1736+538io 270pf+0w now I am convinced that my error is related to this array in some way because if I change the size of the array to say 900 by 10 by 10 then I don't have any problems. Am I declaring this array properly? I have plenty of RAM and i don't think that a 900K element array of floats is too big. Can I dynamically allocate this array somehow? What is really strange is that sometimes the code compiles and runs with no problem....and then I turn around and compile it with no changes and I get an compilation error. Furthermore my problem is not that I am trying to write to an element that does not exist (like if i were trying to write to element objects[9001][10][10]) because an error like that would be a run time error not an compilation error.....any help it truly appreciated.........thanks alot, -- Macarthur Drake jr. Biomedical Engineering The Cleveland Clinic Foundation Phone (216) 445 3411, Fax (216) 444 9198 drake.79@postbox.acs.ohio-state.edu, drake@bme.ri.ccf.org