delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/01/08:57:46

Date: Sun, 1 Feb 1998 08:57:04 -0500 (EST)
Message-Id: <199802011357.IAA18232@p2.acadia.net>
To: fritz AT flash DOT net
Subject: Re: need help with a 3d routine!!
Cc: djgpp AT delorie DOT com
References: <34D1453D DOT 1173 AT flash DOT net>
in-reply-to: <34D1453D.1173@flash.net>
From: swarnerx3 AT acadia DOT net (Scott Warner)
MIME-Version: 1.0

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 -


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