delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/14/22:50:49

Message-Id: <s1ea5981.062@MAIL.TAIT.CO.NZ>
Date: Mon, 15 Jul 1996 14:45:14 +1200
From: Bill Currie <bill_currie AT MAIL DOT TAIT DOT CO DOT NZ>
To: platko AT ix DOT netcom DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: Why does this code not work?

On 15/7/96  11:33 am, Bob Platko <platko AT ix DOT netcom DOT com> did thus say >>>
> 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] =

                                       ^^^^ should this be POLYCORDS??

>             { 
>               { {-10, 10, 0},{ -2,-10, 0},{ 0,-10, 0},{ -5,10, 0} },   
[snip]

Bill

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019