www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/27/13:23:39

Date: Thu, 27 Apr 95 08:32:45 EDT
From: den AT aisinc DOT com (Dave New)
To: djgpp AT sun DOT soe DOT clarkson DOT edu, dpmurach AT students DOT wisc DOT edu
Subject: Re: parse error before 'tga_hdr'

Dan writes:
 
>      I've had some compile time errors that perhaps someone has had before.
> I recently downloaded the lug library.
> 
> When I "clug" programs I get "parse error before 'tga_hdr' in lugfnts.h
> 
>   (it refers to the following)
> 
> extern int
> read_tga24(
> #ifdef USE_PROTOTYPES
>         FILE *,
>         byte *,
>         byte *,
>         byte *,
>         tga_hdr *
> #endif
> );
> 
> 
>    Ant ideas?
> 
Not being familiar with this code, I'll hazard a guess, anyway 8-).
Usually what causes that particular error message in my code, is a missing
typedef or #define that declares what 'tga_hdr' is.  The error message is
a little misleading in saying that the parse failure occurs *before* the
item in question, but it at least helps you to zero in on it.  Hope this
helps.

DaveN
 

- Raw text -


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