# Error building ROOT 6.26/10 on Win11 with VS17

**URL:** <https://root-forum.cern.ch/t/error-building-root-6-26-10-on-win11-with-vs17/52941>\
**Category:** ROOT\
**Tags:** build, root\
**Created:** [December 30, 2022, 7:08pm UTC](https://root-forum.cern.ch/t/error-building-root-6-26-10-on-win11-with-vs17/52941 "2022-12-30T19:08:54Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Dor\_Miron](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dor_miron/32/31996_2.png) [@Dor\_Miron](https://root-forum.cern.ch/u/Dor_Miron)\
**Post date:** [January 14, 2023, 12:51pm UTC](https://root-forum.cern.ch/t/error-building-root-6-26-10-on-win11-with-vs17/52941/15 "2023-01-14T12:51:05Z")

</div>

Amazing! the new build has finished, the install directory has filled and I can finally run ROOT from the VS command prompt.  
My new problem (and hopefully the final one 😃) is that I can’t run pyroot.  
I added my \bin to the PYTHONPATH and can:

> import ROOT

But I get the following error:

```auto
input_line_1:1:10: fatal error: 'new' file not found
#include <new>
         ^ ~~~~
Assertion failed: OldBuilder->DeferredDeclsToEmit.empty() && "Should have emitted all decls deferred to emit.",
file C:\Users\dor00\ROOT\root_src\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 155

```

Which is identical to the error I get trying to run root from **cmd** , so perhaps solving this will solve my pyroot problem as well…?  
From what I understand the only difference from VS command prompt and cmd is environment variables? Any idea as to what could be the problem?

A bit more information:

- Trying to install ROOT from the binary gave me the same error, which is one of the reasons I tried to build ROOT from source in the first place seeing [this](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529).
- To rule out different SDK versions, I can say that the only SDK version installed is 10.0.22000.0

---

_[View the full topic](https://root-forum.cern.ch/t/error-building-root-6-26-10-on-win11-with-vs17/52941)._
