El código es muy simple. y el fallo cae en IMG_Load...
Código
#include <SDL/SDL.h> #include <SDL/SDL_image.h> int main(int argc,char *argv[]) { //Variables SDL_Surface *screen,*imagen; imagen=IMG_Load("smb-04.bmp"); SDL_Event evento;//Estructura evento int start; SDL_Init(SDL_INIT_VIDEO); screen=SDL_SetVideoMode(640,480,32,SDL_SWSURFACE); while(1){ start=SDL_GetTicks(); if(start%25==0){ SDL_PollEvent(&evento);//devuelve 0 si no hay eventos if(evento.key.state==SDL_PRESSED){ if(evento.key.keysym.sym == SDLK_ESCAPE)return 0; } SDL_BlitSurface(imagen,0,screen,0); SDL_Flip(screen); } } return 0; }
EDITO: Posiblemente era una DLL antigua.