SDL_image - PNGs not loading

Hi,

I have a problem, I can’t load PNG files using SDL_image. I have libpng13.dll in my project directory, and zlib1.dll too.
Loading BMPs/TGAs is no problem.

The surface just remains null.

What’s going on? Help!!

Many Thanks
Ed___________________________________________________________
Yahoo! Messenger - with free PC-PC calling and photo sharing. http://uk.messenger.yahoo.com

Hello !

I have a problem, I can’t load PNG files using SDL_image. I have
libpng13.dll in my project directory, and zlib1.dll too. Loading BMPs/TGAs
is no problem.

The surface just remains null.

Are you sure that your SDL_image.dll
is compiled with libpng support ?

If it is, the exact filenames of the
libpng.dll and zlib.dll are important.

Best is that you use this ZIP File :

http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.5-win32.zip

CU