"cl" is not recognized in the VSC Terminal (using powershell)

I’m following the Unreal C++ course and I’ve got to video 7 (in section 1) where you have to type cl in the terminal to verify that the compiler works, but I’ve done this and all I got was an error. (being ran in powershell)


And yes, I did run VSC through the developer command prompt and installed the C++ extension and also checked “Game development with C++” and Unreal Engine installer and it still won’t work.

Could you show what you get in the developer command prompt typing “cl”?

It shows me the same thing as when I’m typing it in VS Code

image

Quick edit: Just realized I typed “cl” in Powershell in VS Code instead of cmd. (it would still show it in cmd terminal however)

That looks like you don’t have C++ installed as the command prompt looks like it should (has the Visual Studio and copyright banner) but cl isn’t working which is the Visual C++ Compiler.

Could you show what you have installed in the Visual Studio Installer?

This is what I have installed for the workloads in the Visual Studio Installer

Apparently I found a solution, I had to run the Visual Studio Developer Command Prompt as an admin to get it to work. Thanks for you help though @DanM. (will update post if I encounter another error regarding this)

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms