How to setup VS Code to run OpenGL code (Shorter Version)

Опубликовано: 29 Сентябрь 2024
на канале: A C++ Enjoyer
18,466
146

Shorter version of my previous video. It has:
1. The procedure
2. No explanation
3. Nice music (I like it, Hope you do too)

Code runner config:
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -I C:\\glfw-3.3.8.bin.WIN64\\include -I C:\\glew-2.1.0\\include -L C:\\glfw-3.3.8.bin.WIN64\\lib-mingw-w64 -L C:\\glew-2.1.0\\lib\\Release\\x64 -lglfw3dll -lglew32 -lopengl32 && ./$fileNameWithoutExt",

Here is everything in that file I had called "Code Needed":

Tasks:

"-I",
"C:\\glfw-3.3.8.bin.WIN64\\include",
"-I",
"C:\\glew-2.1.0\\include",
"-L",
"C:\\glew-2.1.0\\lib\\Release\\x64",
"-L",
"C:\\glfw-3.3.8.bin.WIN64\\lib-mingw-w64",
"-lglfw3dll",
"-lglew32",
"-lopengl32",

Code Runner:
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -I C:\\glfw-3.3.8.bin.WIN64\\include -I C:\\glew-2.1.0\\include -L C:\\glfw-3.3.8.bin.WIN64\\lib-mingw-w64 -L C:\\glew-2.1.0\\lib\\Release\\x64 -lglfw3dll -lglew32 -lopengl32 && ./$fileNameWithoutExt",

Properties:
"C:\\glfw-3.3.8.bin.WIN64\\include",
"C:\\glew-2.1.0\\include"