I have installed mingw tools using choco with the command choco install mingw. I am using the Windows GIT bash terminal within vscode to run my code compilation
choco install mingw