Re: External structs - newbie question
- From: "Simon" <yaroguelike@xxxxxxxxxxxxxx>
- Date: 10 Nov 2006 12:24:40 -0800
Simon wrote:
I followed these instructions quite precisely, but the result was a bit
confusing. When I compile I now get a series of errors throughout
main() which say "invalid use of undefined type 'struct tiles'".
I also get an interesting error at the line in csd.c where I define map
(struct tile map[MAP_HEIGHT][MAP_WIDTH];) which says "storage size of
'map' isn't known".
There must be something obvious I'm missing...
Simon
Ignore that - by putting simply "extern tile..." in the header file and
then "tile map..." in the definition in csd.c it all seems to work
fine. Thanks a lot for your help!
Simon
.
- References:
- External structs - newbie question
- From: Simon
- Re: External structs - newbie question
- From: Simon Biber
- Re: External structs - newbie question
- From: Simon
- External structs - newbie question
- Prev by Date: Re: How to store a 13 digit number in c ?
- Next by Date: Re: Problem with application on Windows x64
- Previous by thread: Re: External structs - newbie question
- Next by thread: Re: External structs - newbie question
- Index(es):
Relevant Pages
|
|