Search code examples
c++openglvisual-studio-2013sdlsdl-image

How to use SDL locally in Visual Studio 2013


I want to add SDL and SDL_image to my Visual Studio project. But can I do it locally only for this project? I don't want to put the dlls in System32 folder.


Solution

  • As described by Ciprian Khlud, you could simply put your DLLs next to the output binary (.exe). You could find output directory in

    Right click on project -> Project Settings -> General -> Output Directory
    

    Alternatively, you could add the folder where DLLs are into the list of search directories:

    Right click on project -> Project Settings -> VC++ Directories -> Executable Directories
    

    (same way as you add include dirs and library dirs)