C++ with SDL2 library in Visual Studio Code
#cpp #sdl2 #vscode
Command to install MinGW-w64 toolchain
pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain
Makefile (use TAB to indent)
all:
g++ -I src/include -L src/lib -o main main.cpp -lmingw32 -lSDL2main -lSDL2
Background music: • TheFatRat - Windfall
Timestamp:
0:00 Install Visual Studio Code
0:25 Install C++ extension
0:33 Install C++ environment (compiler)
1:09 Add C++ compiler to System environment variables
1:24 Download SDL2 library
1:44 Setup a coding folder
2:45 Write some code and check if it works
On this page of the site you can watch the video online C++ with SDL2 library in Visual Studio Code with a duration of hours minute second in good quality, which was uploaded by the user Trongdai Nguyen 12 February 2025, share the link with friends and acquaintances, this video has already been watched 4,632 times on youtube and it was liked by 76 viewers. Enjoy your viewing!