Setting Up Visual Studio Code & MinGW
-
PS C:\Users\anubi\Desktop> cd "c:\Users\anubi\Desktop\" ; if ($?) { g++ Tryout1.cpp -o Tryout1 } ; if ($?) { .\Tryout1 } c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file Tryout1.exe: Permission denied collect2.exe: error: ld returne I can't even run a simple program to print "hello". I installed MinGW and setup the path. What is mising in VSC?
-
PS C:\Users\anubi\Desktop> cd "c:\Users\anubi\Desktop\" ; if ($?) { g++ Tryout1.cpp -o Tryout1 } ; if ($?) { .\Tryout1 } c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file Tryout1.exe: Permission denied collect2.exe: error: ld returne I can't even run a simple program to print "hello". I installed MinGW and setup the path. What is mising in VSC?
-
PS C:\Users\anubi\Desktop> cd "c:\Users\anubi\Desktop\" ; if ($?) { g++ Tryout1.cpp -o Tryout1 } ; if ($?) { .\Tryout1 } c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file Tryout1.exe: Permission denied collect2.exe: error: ld returne I can't even run a simple program to print "hello". I installed MinGW and setup the path. What is mising in VSC?
The most common cause of that error is the executable your trying to compile is already running, probably from a previous launch of the app you never closed.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak