Repository where I start learning the basic of the C language.
- Install extensions from C/C++ extension pack (Note: some of these extensions aren't available on Open VSX so they have to be downloaded manually from the marketplace and dragged in to extensions tab)
- clangd is a potential alternative that is available on Open VSX but I haven't tried it yet
- Use scoop to install MSYS2
- It might be better to just install using the official installer to avoid any potential pitfalls
- Set up Windows Terminal for MSYS2 (Note: scoop installs MSYS2 in a different location than the default)
- Open MINGW64 in Windows Terminal and run
pacman -Syu
to sync the databases and update base packages - Install GCC compiler:
pacman -S --needed base-devel mingw-w64-x86_64-toolchain
- Add
...\msys64\mingw64\bin
to environment variables path - Create a symbolic link to
...\mingw64\bin\make.exe
from...\mingw64\bin\mingw32-make.exe
(you'll probably need to do this from an elevated command prompt). Note that to run the below command you'll need to replace the ellipses with the full path to youmsys2
folder.mklink '...\mingw64\bin\make.exe' '...\mingw64\bin\mingw32-make.exe'
I've run into some issues running Makefiles from PowerShell.
Currently I've been adding SHELL=pwsh.exe
to my Makefiles, which seems to work but I'm still trying to figure out where my issues are comming from.