Skip to content

Instantly share code, notes, and snippets.

@Pharap
Last active October 23, 2018 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pharap/36bed817af705f3b8ba92ea5d0ffaf61 to your computer and use it in GitHub Desktop.
Save Pharap/36bed817af705f3b8ba92ea5d0ffaf61 to your computer and use it in GitHub Desktop.
Steps to use SDL in VS
  1. VC++ Directories > Include Directories = $(SolutionDir)$(SolutionName)\Include
  2. VC++ Directories > Library Directories = $(SolutionDir)$(SolutionName)\Lib
    • $(SolutionDir)$(SolutionName)\Lib\x64 for x64
    • $(SolutionDir)$(SolutionName)\Lib\x86 for x86
  3. C/C++ > Code Generation > Runtime Library = Multi-threaded DLL (/MD)
  4. Linker > System > SubSystem = Windows (/SUBSYSTEM:WINDOWS)
  5. Linker > Input > Additional Dependencies = SDL2.lib;SDL2main.lib;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment