Message-Id: <199812271609.QAA22476@remus> From: "Arthur" To: Subject: RE: Allegro.. Date: Sun, 27 Dec 1998 16:08:27 -0000 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal In-Reply-To: <3.0.6.32.19981227015827.007c4040@tenforward.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com > Uhm, stupid question here, uhm, hehe.. > well, i thought id listen to all the *jive* on allegro > and go out and get it, and whatdya know i screw up somewhere.. > well, i *think* i did everything on the instruction text thing.... > but i probably missed something..twice..so here's my problemo and if you > could point me in the right direction i'd appreciate it, > I slammed allegro together on my comp and fired up some example code > in some e-mails that were swarming through the list and fired up my 'ol > compiler making sure to use the "-lalleg" switch and kabam! away went my > dreams of graphic programming in C with an error referring to line 700 > somethin' about a "zero-sized array" now i went and looked at her myself, > and sure enough in > allegro.h there it was, the strange zere-sized array..to this day i wonder > what > the programmer (or me) was thinking about that [0]sized array.. Not sure what went wrong here. In my version of allegro.h, line 700 is a blank line... There are some zero sized arrays, but this is because these arrays are dynamically allocated. For instance in the BITMAP array, there is an "unsigned char *line[0];". Before you can use a BITMAP structure you have to create it using create_bitmap();. The create_bitmap() function allocates some memory for the *line[] array using malloc. It works for me, and I have not heard of anyone with any similar errors which leads me to believe that it's something that you have done rather than Allegro. > so, sorry about the lack of info on line #'z and all but i > had a slight > hard drive incident and havent had the time to get allegro of the > net again > (in other words i was so frustrated and confused i dont WANT to > get it again) Don't give up. Try it again, and next time give us some information (like the code that you used). > well, if ya'v gotten this far in my little(large) adventure story on > allegro then congrats' and (i hate this part) ahem *help*...ahem*please*.. No problem. Download the Allegro 3.1 beta from http://www.talula.demon.co.uk/allegro/ and install it, then try the code again. Post any error messages and the code in to us, and we can see if we can find out what's wrong. You might also like to join the mailing list - details on the allegro site. Good luck! James Arthur - jaa AT arfa DOT clara DOT net http://www.jado.org/users/arfa/ ICQ#15054819