Mail Archives: djgpp/1997/11/04/21:31:49
"John M. Aldrich" <fighteer AT cs DOT com> wrote:
>I also got a number of other errors and warnings when I tried to compile
>your code (the fact that I don't have your header file notwithstanding).
>However, your main problem is this: you never define any variables of
>type 'ball'. Having a struct definition isn't enough; you must define
>an actual variable in order to use it.
The header file is not absolutely necessary to have. Note the use of
art[ball], which suggests that the header file contains a #define
ball. The conflicting definitions should then be easy enough to
perceive...
1. any object defined in the datafile should not have exactly same
name as anything else defined (suggest uppercase or prefixed
definitions in header file.)
2. a typedef defines types, not variables. Removing "typedef" should
work to define a "ball" variable, or it will be necessary to define a
variable with yet another name (identifier should not conflict with
the type "ball").
- Raw text -