Jump to content
  • Advertisement
Sign in to follow this  
Arenth

Obscure error code in VC++6.0/SDL

This topic is 4807 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Never mind, I hate stupid errors that are as plain as day, but for some reason you can't find.... oh well

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!