我在使用SDL库时遇到了问题。我正在使用VS2012 Ultimate,并且实际上正在使用这个教程:http://lazyfoo.net/tutorials/SDL/01_hello_SDL/index2.php来设置一切,我已经按照步骤做了几次,但我仍然有问题,这是我的代码,非常简单:
#include <iostream>
#include <SDL.h>
SDL_Surface * ekran = NULL;
int main (int argc, char *args [] )
{
SDL_Init( SDL_INIT_EVERYTHING );
ekran = SDL_SetVideoMode( 640, 480, 32, SDL_SWSURFACE );
SDL_Flip( ekran );
SDL_Delay( 2000 );
SDL_Quit();
return 0;
}
我正在遇到以下错误:
error C3861: 'SDL_SetVideoMode': identifier not found
error C3861: 'SDL_Flip': identifier not found