cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/15/12:47:01

Message-ID: <37B6E79F.7B7B@ns.sympatico.ca>
From: Klaas <klaas AT ns DOT sympatico DOT ca>
Organization: N/A
X-Mailer: Mozilla 3.04 (Win95; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: something went wrong
References: <QBpt3.73$%J4 DOT 17627 AT harpo DOT ctel DOT net>
Lines: 42
Date: Sun, 15 Aug 1999 13:15:27 -0300
NNTP-Posting-Host: 142.177.98.89
X-Trace: sapphire.mtt.net 934733710 142.177.98.89 (Sun, 15 Aug 1999 13:15:10 ADT)
NNTP-Posting-Date: Sun, 15 Aug 1999 13:15:10 ADT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Chewbaklava wrote:
> 
> i was creating a program that would let you create 24x24 bitmaps and it was
> all working good until i quit for the day.  this morning i got up, and it
> didn't compile as it did the night before.
> 
> whenever i compile it, it gives me a HUGE list of "parse error before " for
> practically every line.  maybe i'm an idiot and am just missing something
> REALLY little, like a semi-colon or something.
> 
> anyway, the code -
> 
> #include <stdio.h>
> #include <stdlib.h>
> 
> #include "allegro.h"
> 
> BITMAP *bmp;
> BITMAP *sub;
> BITMAP *poo;
> PALETTE pal;
> int c = 0;
> int k, x, y;
> 
> void drawscreen()
> {
> int i, a;
> clear(bmp);
> show_mouse(screen);
> 
> for (a = 0; a < 10; a++)
> {
> for (i = 0; i < 256; i++)
> }
There's your problem...

Btw finding these errors would be easier if you used indenting.

Also, rhide (or contemporary) will bring you right to the line of the
error, making parse one of the easiest bugs to fix.

-Mike

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019