Test Foro de elhacker.net SMF 2.1

Programación => Programación C/C++ => Mensaje iniciado por: anonimo12121 en 3 Abril 2011, 20:02 PM

Título: Problema con SDL_image[SOLUCIONADO]
Publicado por: anonimo12121 en 3 Abril 2011, 20:02 PM
Hola. tengo un problema con sdl_image me da un error grave...

(http://img839.imageshack.us/img839/4599/capturalou.jpg) (http://img839.imageshack.us/i/capturalou.jpg/)

El código es muy simple. y el fallo cae en IMG_Load...
Código (cpp) [Seleccionar]

#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.