Pages

12 October, 2023

Compiler Not Recognized (GCC for Visual Studio Code)

Despite installing the compiler and adding the path to my user environment variable path, the compiler isn't recognized when I test it by checking the version through terminal on VS or command prompt.








For some reason, the path changes from C:/msys64/ucrt64/bin/ to C:/msys64/mingw64/bin/ after I reopen it.


File location on computer (path that was added to environment variable)





Compiler not recognized


Edit: Everything above has been resolved, the commands now all work when I put them into the MSYS2 terminal. However, I'm still having issues when I type g++ or any other commands into the VS terminal. I've attached another screenshot below.


VS terminal

No comments:

Post a Comment

Thanks