How to link libraries to MinGW?
I've been trying to get SDL to work with my MinGW GCC compiler but when I try to link the libs from the command line, it searches through all the default search paths and misses the libraries that I have already saved in there. I'm trying to link them through options from the DOS prompt like so:
I'm not using any IDE with MinGW because I'm accustomed to compiling on the command line.
gcc foo.c -l libSDL.la -l libSDLmain.a -l libSDL.dll.a
So does anyone know what the issue is?