I’m following the course “C++ Development for UE4” and I’ve encounter a problem attempting to build the Triple X game. The command cl no longer works in the command window. It worked after I installed the software and now, after shutting down and restarting the system, i get this error message:
‘cl’ is not recognized as an internal or external command,
operable program or batch file
Help would be appreciated.
Did you forget to launch VS Code from the developer command prompt?
Let me get the whole thing straight. What exactly do I have to do:
bring up the developer command line window and at the prompt type ‘code’ ?
Hello @runriot,
yes, what you wrote is the correct way to start VS Code. If it still does not work: execute the command ‘where cl’ in the developer command line before even starting VS code. It should output something like this:
C:\Development\Microsoft Visual Studio\2019\Community>where cl
C:\Development\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\bin\Hostx86\x86\cl.exe
If your output is not similar, then maybe your installation of Visual Studio is broken.
At least to me, the more important question is why did rebooting the computer (cold start, yes) do anything to mess up the file system? You will want to keep an eye on that. If nothing else happens in 3 months, perhaps you’re good to go.
You could check the disk and run AV scan or something to maybe see if there’s a problem there.
Also can check to see if the Visual Studio Code cl is there: eg https://stackoverflow.com/questions/31953769/visual-studio-doesnt-have-cl-exe and if it is, then it may be because the computer lost the path or something along those lines that was only known until you rebooted.