CP-VSCode-Setup icon indicating copy to clipboard operation
CP-VSCode-Setup copied to clipboard

New Path from VSCode Docs

Open Ricky-Patel opened this issue 3 years ago • 1 comments

The build settings do not work when following the updated VS Code Docs for installing Mingw64. The new path as recommended does not match the tasks.json file and results in errors to build and output.

New path: C:\msys64\mingw64\bin Existing path: C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe

I was able to update the path in tasks.json but I am getting an error where I cannot open output file 1.exe.

[Running] cd "c:\Users\ricky\CP-VSCode-Setup-main\Current\" && g++ 1.cpp -o 1 && "c:\Users\ricky\CP-VSCode-Setup-main\Current\"1
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file 1.exe: Permission denied
collect2.exe: error: ld returned 1 exit status

[Done] exited with code=1 in 1.012 seconds

Ricky-Patel avatar Jul 06 '22 16:07 Ricky-Patel

gcc.exe caused me a lot of trouble in windows. g++.exe is the better option

Termiiii avatar Nov 03 '23 08:11 Termiiii