Mail Archives: djgpp/1995/04/27/13:23:39
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 -