From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP Structs Date: Sat, 01 Mar 1997 22:12:04 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 21 Message-ID: <33191A34.BC9@cs.com> References: <01bc2673$a4dbe420$8e54dec2 AT satan> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp206.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Iain Buchanan wrote: > > And an array full of pointers to such structres: > defPt *View[25][25]; > > When I try and do this.... ("x" and "y" are of type int, and each go from > 0-24) > defPt *View[x][y] = calloc(1, sizeof(defPt)); Excuse me, but I fail to see the purpose of this line. Are you really trying to redeclare 'View' each pass through the loop? If not, then you have a major syntax error here. Try just: View[x][y] = (defPt *) calloc( 1, sizeof(defPt) ); -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Descent 2: The Infinite Abyss - The greatest Internet game of all | | time just got better! This time, you're going all the way down...| ---------------------------------------------------------------------