每次我编译我的简单 SDL1.2 代码时,它都会成功编译,但是当我尝试通过终端(Ubuntu 中的alt+ )运行它时:t
./game
Segmentation fault (core dumped)
我得到这个错误。你能帮忙吗?这是代码:
#include<SDL/SDL.h>
int main(int argc,char args)
{
SDL_Init( SDL_INIT_EVERYTHING);
SDL_Surface* screen;
screen=SDL_SetVideoMode(640,480,32,SDL_HWSURFACE);
SDL_Flip(screen) ![problem running the program][1];
SDL_Delay(5000);
SDL_FreeSurface(screen);
SDL_Quit();
}