#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;
}
Obscure error code in VC++6.0/SDL
error C2059: syntax error : 'type'
Well thats the error I get, and here is the full code.
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?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement