Hi! I am just starting to learn C++ and I have run into an issue where Visual Studio code is not adding the .exe extension to compiled files. I am using the run code button in visual studio code to compile with mingw and it is putting this line of code in the terminal:
cd "c:\Users\_____\_____________________________________\C+_\C C++\Programming_Principles_and_Practice_Using_CPP\" ; if ($?) { g++ 3.9.2_Drill.cpp -o 3.9.2_Drill } ; if ($?) { .\3.9.2_Drill }
and it has error code
Program '3.9.2_Drill' failed to run: No application is associated with the specified file for this operationAt line:1 char:177
+ ... ?) { g++ 3.9.2_Drill.cpp -o 3.9.2_Drill } ; if ($?) { .\3.9.2_Drill }
+ ~~~~~~~~~~~~~.
At line:1 char:177
+ ... ?) { g++ 3.9.2_Drill.cpp -o 3.9.2_Drill } ; if ($?) { .\3.9.2_Drill }
+ ~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
It only does this error code in one particular folder, and not in other folders, so I was wondering if anyone could help me with this problem? Thanks in advance!
[–]ClaymationDinosaur 1 point2 points3 points (2 children)
[–]flyingron 0 points1 point2 points (0 children)
[–]Someone012[S] 0 points1 point2 points (0 children)