Obscure error code in VC++6.0/SDL

Started by
0 comments, last by Arenth 19 years ago
error C2059: syntax error : 'type' Well thats the error I get, and here is the full code.

#include "SDL.h"

int bRunning;

int main( int argc, char* argv[] )
{
  
	SDL_Event event; /* Event structure */
	
	SDL_Init(SDL_INIT_VIDEO);
	bRunning = 1;
	while (bRunning)
	{

		
		/* Check for events */

		while(SDL_PollEvent(&event))
		{  /* Loop until there are no events left on the queue */

			switch(event.type)
			{
			case SDL_QuitEvent: 
				bRunning = 0;
				return 0;
				break;
			default: /* Report an unhandled event */
				break;
			}

		}

	}
	return 0;
}

So yeah I've used SDL before with mingW and never run into this error, and I have no idea how to fix it, any else know?
Advertisement
Never mind, I hate stupid errors that are as plain as day, but for some reason you can't find.... oh well

This topic is closed to new replies.

Advertisement