Skip to content

Instantly share code, notes, and snippets.

@Dani-0TB
Dani-0TB / MSYS2_UCRT_SDL2_VSCODE_CONFIG.md
Last active May 28, 2025 09:53
Setting up SDL2 for development on Windows with MSYS2 and VS Code

Setting up SDL2 for development on Windows with MSYS2 and VS Code

Hello! I made this document for anyone trying to setup an enviroment for SDL2 on Windows using VS Code for building and debugging.

This is just a basic setup to test everything works and compiles correctly. This is adapted from this guide by Adam Richardson, made to work with the UCRT enviroment.

So, let's get to it.

Download and install MSYS2 64bit

@skeeto
skeeto / testenv.cpp
Created September 30, 2024 23:22
Quick test of environment variable passing
// Quick test of environment variable passing
// $ cc -nostartfiles -o testenv testenv.cpp
// $ cl testenv.cpp /link /subsystem:console kernel32.lib
//
// Spawns a copy of itself with a custom-built environment block, and
// the spawned child examines/probes that block.
//
// This is free and unencumbered software released into the public domain.
typedef int I;