[gameprogrammer] Re: C-Code Error interpretation

Looking more at the second error, I managed to fix it by moving the typedef struct ... {...} up to BEFORE the function that uses it, then changing the function's parameter the the type, not the struct.

I still don't know what to do for the extern error.

--Scott

On 31 Jul, 2005, at 7:19 PM, Scott Harper wrote:

Sorry to bother, but I'm trying to get some code compiling so I can start working with it, but I'm running into some errors (two left now, actually) that I don't understand how to resolve.

First off, there's "static declaration of 'variable_name' follows non-static declaration", and then it links back to both places it's declared:

*.h -- extern int variable_name;
*.c -- static int variable_name;

I understand what it's SAYING, but I have no clue how to HANDLE it, how to address, remedy the situation.


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: