Mail Archives: djgpp/1998/02/01/08:57:46
Kevin,
If you're using C++, you might have a problem with a parameter called string. You'll also have to include <stdio.h> to make sure that FILE is defined. Hm. Other than that it looks fine to me. You might look at the lines preceding this declaration for missing semicolons, etc.
Scott
In message <34D1453D DOT 1173 AT flash DOT net>, Kevin Joiner <fritz AT flash DOT net> wrote:
> Ok here's the problem. I want to use some 3d routines from Andre
> Lamothe's book, Black Art of 3d Game Programming. Unfortunately the code
> is for Borland and doesn't want to compile. I am attempting to take some
> of the routines and use them with allegro for a project i am working on.
>
> I keep getting this error though:
>
> Error: type specifier omitted for parameter
> Error: parse error before '*'
>
> they are referring to this function declaration:
>
> char *PLG_Get_Line(char *string, int max_length, FILE *fp);
>
> i think that the char type might be a typo since in the definition the
> return type is int. Anyway, I was wondering if anyone can see something
> dumb that I'm trying to do at a glance. Any advice would be appreciated.
>
> thanks
>
> fritz AT flash DOT net
>
>
- Raw text -