if any of you guys wont help me i cant solve it myself. it is like i dont know how to swim and trying swim just by struggling that noone teaches me. keep wasting my energy and in the end i m drowning
so pls help me
Well, that's a linker error, and it's reporting that it can't find the SDL_image library. Which means one of two things:
1) The library isn't on your computer
2) The library is on your computer, but the linker can't find it - most likely, because the list of places to look for libraries in your project settings/makefile doesn't include the directory that contains that library.
And 43 minutes really isn't a very long time to have to wait for a response. Your bumping this thread was a little... premature.
Is there not a standard installer for the SDL_image library? Or some installation instructions? That sounds like an awfully fiddly way of installing it.
In order for your program to compile, the compiler needs to find two things:
- the SDL_whatever.h files
- the libSDL_whatever.a files
If you installed Code::Blocks with the bundled GCC compiler, then you can do it several ways. The Lazy Foo' tutorials have you tell C::B where to find those files on disk where you extracted them from the .zip. If you delete or move the directory afterwards then GCC won't be able to find it.
The other way is to copy them into C:\MinGW\include and C:\MinGW\lib, respectively. (I'm not sure where C::B puts the GCC. It might be in C:\Program Files\Code Blocks\MinGW or something like that.)
Once you have that done, then the GCC can actually find the files.
well i went on rampage and deleted and removed everything about sdl and c::b.
then reinstall all and it went perfect everything worked. ty for all your help
Although this is solved, I believe Code Blocks doesn't keep the compiler anywhere, you're supposed to install MinGW on your own, then install Code Blocks.