If you develop a 32 bit program, you should use a 32 Bit SDL library.
You can place your libraries (and their headers) everywhere - but if you are using MinGW better keep blanks out of the path. Just tell the compiler where he can find those files.
And here's how to do this in NB:
First, go to Right click Project --> Properties
C++ Compiler
: atInclude Directories
set the path where the headers of your libs areLinker
:- at
Additional Library Directories
add the path where your lib binaries are - at
Libraries
add the name (!) of your library - without prefix lib or file extension
- at
If your Libraries are named eg. libSDL2.dll
set SDL2
as name; if SDL2.dll
only SDL2
.