Date: Thu, 29 Jul 1999 09:53:21 +0200 (MET DST) From: Wieslaw Bela Message-Id: <199907290753.JAA19712@aurora.put.poznan.pl> =?ISO-8859-1?Q?From: =20Wies=b3aw=20Bela=20?= To: djgpp AT delorie DOT com Subject: A bug MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver 1.23 Reply-To: djgpp AT delorie DOT com Hi I want to report a bug that I've found while making a project in DJGPP. I don't know where is the problem, but I've tried many things, including changing the order of variables, size of arrays, their names (I also tried to compile on two different machines), and the effect is always the same: the memory for (static) array "wyglad" isn't allocated (when I debug it, size of this array is 0), although no bug is reported during the make (when I changed the program and allocated memory using new operator, everything was OK). I've got the same problem with COLOR_MAP structure from allegro, so it seems that DJGPP doesn't allocate memory for some structures. Here is a short example of how does it work: const MaxBok = 10, MaxWys = 20; const IlWierzch = 4, IlScian = 3; struct punkt2D { int x, y; }; typedef punkt2D sciana [IlWierzch]; sciana wyglad [MaxBok + 1] [MaxBok + 1] [MaxWys + 1] [IlScian]; int main (void) { return 0; } Wieslaw Bela wiechu AT aurora DOT put DOT poznan DOT pl wiechub AT polbox DOT com