Message-Id: <199801310459.RAA02352@cirrostratus.netaccess.co.nz> Comments: Authenticated sender is From: "Richard Chappell" To: Shawn Hargreaves Date: Sat, 31 Jan 1998 16:51:42 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Allegro Bitmap Warnings Reply-to: Pixnaps AT netaccess DOT co DOT nz CC: djgpp AT delorie DOT com In-reply-to: Precedence: bulk > Richard Chappell writes: > >Why is that, using Allegro, I get a warning for the line: > > > >bmp=load_bmp("bmp/welcome.bmp",pal); > > > >Whats wrong with it? > > It is impossible to say without seeing some more of your code. Most > likely you have declared either your bmp or your pal variable as the > wrong type: bmp should be a BITMAP *, and pal should be a PALETTE or an > RGB[256]. > > The ex15.c program demonstrates how to load and display an image file: > look at this to see how you should declare these variables. > > >The warning is something like "converting int to pointer without a > >cast" or it might be the other way round (pointer to int), but it's > >SOMETHING like that, anyway. > > Please try to be as precise as possible when asking for help: if you > don't give specific information in your question, it is very hard for > anyone to give you an accurate answer in reply! I declared the variables: BITMAP *bmp; PALETTE pal;