You can't link to .dll files, you must link to the corresponding .a. For OpenGL, this is libopengl32.a, and it's already in a path that the linker knows so all you have to do is to add "opengl32" at the same place where you added "sfml-system" and "sfml-window" in your linker settings.