Tuesday, July 28, 2009

Is anyone good at C++?

i keep getting an error that says there is a syntax error missing before "sprite". Can anyone tell me what is missing?





here is the code:


//game file





#include "header.h"





extern SPRITE sprite;


long start = GetTickCount();





void Game_Run(HWND hwnd)


{

Is anyone good at C++?
Is sprite declared somewhere else?





What is in header.h








extern SPRITE sprite;





Could give you errors if SPRITE struct isnt declared or if sprite isn't declared somewhere. Or finally if it declared somewhere else as a different type.





Also if there is a syntax error in your header file, it can appear that the compiler is seeing it just before that line.


No comments:

Post a Comment