[SDL] Problems loading PNG

Amaury amaury at ispcmw.rimed.cu
Fri Feb 18 17:43:27 PST 2005


The problems is that compiler not recognizer a IMG_Load, I works with
Kdevelop 3.0.2 under Linux Mandrake 10.1 Official an I link library:
 #include <SDL/SDL.h> 
 #include <SDL/SDL_image.h>

and nothing.



-----Mensaje original-----
De: sdl-bounces+amaury=ispcmw.rimed.cu at libsdl.org
[mailto:sdl-bounces+amaury=ispcmw.rimed.cu at libsdl.org] En nombre de julien
Jabon
Enviado el: Thursday, February 17, 2005 10:54 AM
Para: A list for developers using the SDL library. (includes SDL-announce)
Asunto: Re: [SDL] Problems loading PNG

I have no idea about what exacly SDL_RWROPS
but me to laod a png, I use  SDL_Surface* p = IMG_Load("file.png");


On Thu, 17 Feb 2005 14:15:01 -0800, Amaury <amaury at ispcmw.rimed.cu> wrote:
>  
>  
> 
> Hello I have problems loading PNG, the error is stranger because I use
> function contain in SDL_image 
> 
> . 
> 
> . 
> 
> . 
> 
>   
> 
>   SDL_RWops *rwop; 
> 
>   
> 
>   rwop=SDL_RWFromFile("../../probeta.png", "rb"); 
> 
>   SurfacePNG = IMG_LoadPNG_RW(rwop); 
> 
> . 
> 
> . 
> 
> . 
> 
>   
> 
> the error is: undefined reference to `IMG_LoadPNG_RW' 
> 
>   
> 
> as they can see I use functions of SDL_image. 
> 
>   
> 
> En español: 
> 
> Hola estoy presentando problemas cargando PNG, el error que me da es
> extraño, o sea yo uso funciones contenida dentro de SDL_image 
> 
>   
> 
> -El pseudo codigo esta arriba.- 
> 
>   
> 
>   
> 
> Sin mas salu2 
> 
>   
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
> 
> 
>

_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl





More information about the SDL mailing list