This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
error: array subscript is not an integer
- From: "Manal Helal" <manalorama at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 24 Jun 2008 11:54:12 +1000
- Subject: error: array subscript is not an integer
- References: <131b56be0806231834r7f431fffgb720705d4ffa6b10@mail.gmail.com>
Hi
I am trying to construct a multidimensional array (as linear array in
memory, but indexed with equations to represent the dimensions) of
size 30 each, and 6 dimensions, which is 30^6=729000000
using a long type for the array crashes, as it is outside the range
values. I used double long data type, and I had the above error: array
subscript is not an integer
Is there a work around this problem that I can implement, or another
way of creating similar arrays?
I appreciate your help a lot,
Kind Regards,
Manal