#Error while trying to get SDL2 working in codeblocks

15 messages · Page 1 of 1 (latest)

crisp hound
#

I keep on getting this error:
ld.exe||cannot find -lSDL2_image|
How should I fix this?

rocky oreBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

crisp hound
#

sorry if this is a beginner question, I've been looking for how to fix this for an hour and haven't got anything

#

I'm running a simple hello world program in C atm

snow vine
#

Did you download the sdl library?

crisp hound
#

yeah, and I created a deps folder with all the stuff

snow vine
#

Did you tell codeblocks to look in that folder for linked libraries?

crisp hound
#

yep

#

the thing is

#

I don't even have -lSDL2_image as an "other linker options"

crisp hound
#

ok I fixed it, I did have it in "other linker options" after all 💀

#

I'm stupid

#

!solved

rocky oreBOT
#

Thank you and let us know if you have any more questions!

#

[SOLVED] Error while trying to get SDL2 working in codeblocks