Missing file error when installing in windows

ROOT Version: v6.38.02
Platform: Windows 11
Compiler: Not Provided


Every time I start root I get this exact same error message. It says that the system cannot find the file specified, then says it can’t find files ‘new’, ‘string’, and ‘iostream’.

It happens when I run it in powershell, visual studio, and in the native tools command prompt for VS, always the same. It also hasn’t changed after I’ve redownloaded the program and made sure it added itself to the system path for all users, and after I’ve redownloaded the dependencies and a more specific release of python. I also tried modifying visual studio to include more features that seemed relevant, but that didn’t change anything. It was also the same when I made sure all the files were in the same folder as it is when I let everything download into default positions. When I run the files command I can clearly see files with the exact names it says it can’t find.

Welcome to the ROOT Forum!
Can you tell me which version of ROOT Visual Studio you have on your machine? And can you show what it prints when you type cl.exe? For example:

C:\Users\bellenot>cl.exe
Microsoft (R) C/C++ Optimizing Compiler Version 19.50.35725 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

Thank you,

I have visual studio version 18.4.0.

Did you start from a Developer Command Prompt for VS 18?
Did you install the Desktop development with C++ Workload (from the Visual Studio Installer)?

I looked and it turned out I’d selected the wrong c++ menu in visual studios. It’s working fine now, thanks!