Sign in to follow this  
Arenth

Obscure error code in VC++6.0/SDL

Recommended Posts

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this