# Getting Root started on Windows

**URL:** <https://root-forum.cern.ch/t/getting-root-started-on-windows/49398>\
**Category:** Newbie\
**Tags:** windows\
**Created:** [March 29, 2022, 2:51pm UTC](https://root-forum.cern.ch/t/getting-root-started-on-windows/49398 "2022-03-29T14:51:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rahon/32/29294_2.png) [@Rahon](https://root-forum.cern.ch/u/Rahon)\
**Post date:** [March 29, 2022, 2:51pm UTC](https://root-forum.cern.ch/t/getting-root-started-on-windows/49398/1 "2022-03-29T14:51:42Z")

</div>

Hello all,  
I am attempting to get Root up and running on my Windows machine (if this fails I guess I will partition my hard drive to run Linux). I see there have been a few questions on this but the responses don’t quite address my situation.

I am getting the below error when I run Root from the VS x86 Command Prompt:

C:\root\_v6.26.00\bin\>root.exe  
input\_line\_1:1:10: fatal error: ‘new’ file not found  
#include   
^ ~~~~  
Assertion failed: OldBuilder-\>DeferredDeclsToEmit.empty() && “Should have emitted all decls deferred to emit.”, file C:\build\ws\BUILDTYPE\Debug\LABEL\windows10\V\6-26\root\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 147

_ROOT Version:_ 6.26.00  
_Platform:_ windows 10  
\_Compiler:\_visual studio 2019 (Windows x86 Command Prompt)  
Dependencies: Visual Studio 2019 C++, CMake, Python, Windows SDK

I do not know if my issue is opening Root from the wrong file or using the wrong command, or if my dependencies are not in the right files, or if I built it incorrectly from the .exe.  
Thank you all, please be gentle, I don’t know VS or Root that well yet.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 29, 2022, 2:52pm UTC](https://root-forum.cern.ch/t/getting-root-started-on-windows/49398/2 "2022-03-29T14:52:44Z")

</div>

Welcome to the ROOT forum.  
Our Windows expert, @bellenot, may help you.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 29, 2022, 2:55pm UTC](https://root-forum.cern.ch/t/getting-root-started-on-windows/49398/3 "2022-03-29T14:55:15Z")

</div>

Are you sure you start from a `x86 Native Tools Command Prompt fo VS 2019`? You should see something like this:

```auto
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.11
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'

```

---

<div class="post-metadata">

**Author:** ![Rahon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rahon/32/29294_2.png) [@Rahon](https://root-forum.cern.ch/u/Rahon)\
**Post date:** [March 29, 2022, 3:33pm UTC](https://root-forum.cern.ch/t/getting-root-started-on-windows/49398/4 "2022-03-29T15:33:45Z")

</div>

thank you for the rapid response. my prompt did not look like that, I dug into starting Native Tools x86 and that worked! For those of you who encounter this issue - you need to go into the Visual Studio _directory_ and open the developer command prompt from there, not using the Tools menu inside the VS application.
