From: ovek AT arcticnet DOT no (Ove Kaaven) Newsgroups: comp.os.msdos.djgpp Subject: Re: strange parse error Date: Tue, 04 Nov 1997 23:20:34 GMT Organization: Arctic Net AS Lines: 21 Message-ID: <345faaaf.51855808@news.arcticnet.no> References: <345E74D8 DOT 6D04B23B AT agri DOT huji DOT ac DOT il> <345ED43D DOT 3D28 AT cs DOT com> NNTP-Posting-Host: i.tommeste.moerkeste.kaldeste.dypvinteren.paa.arcticnet.no To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk "John M. Aldrich" 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").