# Is there a Windows Cling binary or how to compile it for Windows?

**URL:** <https://root-forum.cern.ch/t/is-there-a-windows-cling-binary-or-how-to-compile-it-for-windows/32993>\
**Category:** Cling\
**Created:** [March 3, 2019, 10:01am UTC](https://root-forum.cern.ch/t/is-there-a-windows-cling-binary-or-how-to-compile-it-for-windows/32993 "2019-03-03T10:01:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladimr](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/8c91f0/32.png) [@vladimr](https://root-forum.cern.ch/u/vladimr)\
**Post date:** [March 3, 2019, 10:01am UTC](https://root-forum.cern.ch/t/is-there-a-windows-cling-binary-or-how-to-compile-it-for-windows/32993/1 "2019-03-03T10:01:41Z")

</div>

Is there a precompiled Cling binary for Windows or how to compile it?  
Is it possible to compile Cling with VS2017?  
Can anyone provide detailed instructions?  
Why there is a problem with Cling in Windows, but not with Clang?

---

<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 4, 2019, 10:10am UTC](https://root-forum.cern.ch/t/is-there-a-windows-cling-binary-or-how-to-compile-it-for-windows/32993/2 "2019-03-04T10:10:00Z")

</div>

There is no precompiled binary for Windows, you have to build it yourself:  
see the [cling build instructions](https://root.cern.ch/cling-build-instructions). First, check-out llvm, clang and cling sources:

```auto
git clone http://root.cern.ch/git/llvm.git src
cd src
git checkout cling-patches
cd tools
git clone http://root.cern.ch/git/cling.git
git clone http://root.cern.ch/git/clang.git
cd clang
git checkout cling-patches
cd ../..

```

Then use CMake to configure &build cling:

```auto
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=[Install Path] ..\src
cmake --build . --config [Build configuration, e.g. Release or Debug]
cmake --build . --target install

```

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [March 18, 2019, 10:10am UTC](https://root-forum.cern.ch/t/is-there-a-windows-cling-binary-or-how-to-compile-it-for-windows/32993/3 "2019-03-18T10:10:01Z")

</div>

Closed on March 18, 2019, 10:10am UTC

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