Search code examples
c++gccmakefilecompiler-errorspowershell-cmdlet

C++ Compiler error : The term 'make' is not recognized as the name of a cmdlet


I want to compile cpp project in vscode and I write "make to terminal after that I have a error :enter image description here What do you think about this error .How I solve this?

I can't compile even printf cpp files.Thank you.


Solution

  • It's because you don't have make installed on your computer. To install it, follow these steps:

    1. Open UCRT64 present in MSYS2 and enter the following command:
    pacman -S make
    
    1. Now look for the MSYS2 installation location and open the usr\bin folder
    2. Save the directory and place it in the environment variables
    3. Reset cmd

    And ready to use :)