Mail Archives: djgpp/1996/07/15/11:49:09
Bob Platko wrote:
> 
> I can't get the following code to work in GCC.  I keep getting warnings that the
> array has elements past what I defined the limit.  It compiles perfectly in TCC.
> 
> --code--
> 
> const MAXPOLYS   = 5;
> const POLYPOINTS = 4;
> const POLYCORDS  = 3;
> 
> 
> signed short A[MAXPOLYS][POLYPOINTS][MAXPOLYS] =
>             {
>               { {-10, 10, 0},{ -2,-10, 0},{ 0,-10, 0},{ -5,10, 0} },
>               { { -2,-10, 0},{  2,-10, 0},{ 2, -5, 0},{ -2,-5, 0} },
>               { { -6,  0, 0},{  6,  0, 0},{ 7,  5, 0},{ -7, 5, 0} },
>               { { 10, 10, 0},{  2,-10, 0},{ 0,-10, 0},{  5,10, 0} },
>               { {  0,  0, 0},{  0,  0, 0},{ 0,  0, 0},{  0, 0, 0} } };
> 
> --end--
Never mind.  I got it to work just fine.  I changed the const's to #define's.
- Raw text -