Mail Archives: djgpp/1996/07/14/20:33:08
Xref: | news2.mv.net comp.os.msdos.djgpp:5975
|
From: | Bob Platko <platko AT ix DOT netcom DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Why does this code not work?
|
Date: | Sun, 14 Jul 1996 19:33:17 -0400
|
Organization: | Netcom
|
Lines: | 19
|
Message-ID: | <31E983BD.756D@ix.netcom.com>
|
NNTP-Posting-Host: | clv-oh10-24.ix.netcom.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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--
- Raw text -