Sign in to follow this  

Obscure error code in VC++6.0/SDL

Recommended Posts

Arenth    151
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 */
	bRunning = 1;
	while (bRunning)

		/* Check for events */

		{  /* Loop until there are no events left on the queue */

			case SDL_QuitEvent: 
				bRunning = 0;
				return 0;
			default: /* Report an unhandled event */


	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