Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wldomiciano
Last active September 10, 2018 17:15
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 wldomiciano/ba30b65e0f1e41499898b4c44fcf7d20 to your computer and use it in GitHub Desktop.
Save wldomiciano/ba30b65e0f1e41499898b4c44fcf7d20 to your computer and use it in GitHub Desktop.
Comando para compilar um programa usando SDL 2 com o CL, o compilador do MSBuild
set SDL2=\path\to\sdl
@rem Use %SDL2%\lib\x64 for x64 builds
set SDL2LIB=%SDL2%\lib\x86
@rem Put on PATH the DLLs
set PATH=%PATH%;%SDL2LIB%
@rem Alternative subsystem: /SUBSYSTEM:WINDOWS
cl yourcode.c /OUT yourprogram /I %SDL2%\include /LINK /LIBPATH:%SDL2LIB% SDL2.lib SDL2main.lib /SUBSYSTEM:CONSOLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment