Jump to content
Posted 09 February 2012 - 01:16 AM
Posted 10 February 2012 - 03:14 PM
Posted 10 February 2012 - 06:17 PM
Posted 11 February 2012 - 04:21 AM
Posted 13 February 2012 - 10:43 PM
Posted 14 February 2012 - 03:41 AM
IMG_GetError() is likely just a macro that calls SDL_GetError(). That is, the compiler just sees a call to SDL_GetError(), which it emits and the linker can satisfy.
IMG_GetError(), and it compiles with no undefined references whatsoever. Isn't this a function in SDL_Image? So that means it's being loaded properly, but why does it still give an undefined reference error for IMG_Load() ??
IMG_INIT_PNG is probably a preprocessor constant.
Also calling IMG_Init(IMG_INIT_PNG) again throws an undefined reference error. Yet IMG_INIT_PNG I can use and output normally.
Which version is causing you trouble? Where did you obtain this one?
I tried installing an older version of SDL_image, version 1.2.4 to be exact. And it works flawlessly.
In your code? Probably not.
Is this a bug or something in the code?
Posted 14 February 2012 - 04:29 PM
Which version did you have? Because all the SDL satellite libraries got a new version to make them work with SDL 2.0. They will not work with SDL 1.2. You need to make sure your SDL_image version was made for your SDL version.
I tried installing an older version of SDL_image, version 1.2.4 to be exact. And it works flawlessly. I don't understand why the new version doesn't. Is this a bug or something in the code?
Posted 19 February 2012 - 12:22 AM
Learn to make games with my SDL 2 Tutorials