From: David Jenkins Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegros quad3d function HELP NEEDED. PLEASE ;-) Date: Mon, 17 Mar 1997 04:58:45 +0000 Organization: None Distribution: world Message-ID: References: NNTP-Posting-Host: jenkinsdavid.demon.co.uk MIME-Version: 1.0 Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article , Shawn Hargreaves writes >David Jenkins writes: >>Why doesn't the following work??? >[snip] >> v2d[d].y = CENT_Y - (LENS * plotted[d].y / dist); >> } >> >>/*************** >>This is where I get a "parse before vtx1 error". >>*******/ >> V3D_f vtx1 = { v2d[0].x, v2d[0].y, 0, 0, 0, 255 }; > >You are declaring a variable (vtx1) in the middle of a function, and you >can't do that in C. Solutions: > >- move the definition to the top of your function I did and it worked. ;-) Thanks. I thought that assigning the vtx#'s out of the loop would stop them updating the contents. I've learned something new, again. Thanks again. -- http://www.jenkinsdavid.demon.co.uk for Newbie C programers and a larf. ;-) David Jenkins