This link shows you how to configure the SDL / libpng16-16.dll library to access acceess using compiler.exe (the last step right before the sample code)
yourProgram page proprety -> Creates an event-> post-build event
in my case I have to copy "C: \ Users \ MehdiB \ Desktop \ C Program \ Library \ SDL2-devel-2.0.4-VC \ SDL2-2.0.4 \ lib \ x86 \ SDL2.dll" "$ (OutDir ) SDL2.dll ";
copy "C: \ Users \ MehdiB \ Desktop \ C Program \ Library \ SDL2_image-devel-2.0.1-VC \ SDL2_image-2.0.1 \ lib \ x86 \ SDL2_image.dll" "$ (OutDir) SDL2_image.dll";
copy "C: \ Users \ MehdiB \ Desktop \ C Program \ Library \ dll \ libjpeg-9.dll" "$ (OutDir) libjpeg-9.dll"
here where you can get this dll
source share