I have two .so libraries named: libSDL_ttf.so and libSDL_image.so.
In the gcc command inside the makefile I added: -llibSDL_image.so -llibSDL_ttf.so but I get the error:
/usr/bin/ld: cannot find -llibSDL_image.so
/usr/bin/ld: cannot find -llibSDL_ttf.so
collect2: error: ld returned 1 exit status
I've understood that the lib prefix is a convention so I also tried to omit it like this: -lSDL_image.so -lSDL_ttf.so but it didn't help too.
those libraries live next to the makefile so I don't think I should add a -L argument, nevertheless, I've tried to add the following just to make sure: -L$(shell pwd),but again got this error.
Why is that? How to fix?