error: array subscript is not an integer
Thu Jun 26 02:39:00 GMT 2008
now that I am using long long (8 bytes), malloc accepts only size_t,
and it is defined in my machine as 4 bytes.
Is there any way I can allocate in one statement any more?
I appreciate your help a lot?
2008/6/26 Manal Helal <email@example.com>:
> Hi John
> I am trying to create a hyper-cube, multidimensional array, I won't
> create all the elements of the array, but I need a flat index (the
> product of the upper bound at each dimension), to index each cell in
> the created partitions, and this is what will grow exponentially, the
> flat index value only,
> I usually use typedef to create my type of a standard type. How can I
> use it to create bigger types than the standard? how do I check the
> maximum allowed in the machine I am using?
> Thank you very much again,
> 2008/6/25 John Love-Jensen <firstname.lastname@example.org>:
>> Hi Manal,
>>> Is there any other types bigger then 'long long"?
>> Yes, you can make your own types that are as big as you want, up to the
>> limits of your platform.
>> Whether or not to do so depends.... What do you need a bigger type for?
> Kind Regards,
> Manal Helal
More information about the Gcc-help