Skip to content

Instantly share code, notes, and snippets.

@wldomiciano wldomiciano/compile.bat
Last active Sep 10, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.