Last active
September 10, 2018 17:15
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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