# ROOT C++ in Windows

**URL:** <https://root-forum.cern.ch/t/root-c-in-windows/59332>\
**Category:** Newbie\
**Created:** [May 14, 2024, 10:39am UTC](https://root-forum.cern.ch/t/root-c-in-windows/59332 "2024-05-14T10:39:07Z")\
**Posts on this page:** 5\
**Page:** 3

<div class="post-metadata">

**Author:** ![A\_P\_abhisek](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/a_p_abhisek/32/34049_2.png) [@A\_P\_abhisek](https://root-forum.cern.ch/u/A_P_abhisek)\
**Post date:** [May 14, 2024, 1:34pm UTC](https://root-forum.cern.ch/t/root-c-in-windows/59332/41 "2024-05-14T13:34:07Z")

</div>

Sorry, I misunderstood

---

<div class="post-metadata">

**Author:** ![A\_P\_abhisek](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/a_p_abhisek/32/34049_2.png) [@A\_P\_abhisek](https://root-forum.cern.ch/u/A_P_abhisek)\
**Post date:** [May 14, 2024, 1:38pm UTC](https://root-forum.cern.ch/t/root-c-in-windows/59332/42 "2024-05-14T13:38:21Z")

</div>

1. **Add `ROOTSYS` Variable** : In the Environment Variables window, under the “User variables” or “System variables” section (depending on whether you want the variable to be available only for your user account or for all users on the system), click on “New…”. In the “Variable name” field, enter `ROOTSYS`. In the “Variable value” field, enter `C:\Users\abhis\root`. Then click “OK”.
2. **Edit `PATH` Variable** : In the same Environment Variables window, find the “Path” variable in the list of variables under the “User variables” or “System variables” section. Select it and click on “Edit…”.
3. **Add `%ROOTSYS%\bin` to `PATH`** : In the Edit Environment Variable window, click on “New”. Enter `%ROOTSYS%\bin` as the new entry. Click “OK” to save the changes.

I did this, did I do the  
correct thing?

---

<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:** [May 14, 2024, 1:39pm UTC](https://root-forum.cern.ch/t/root-c-in-windows/59332/43 "2024-05-14T13:39:18Z")

</div>

It looks like you did it right

---

<div class="post-metadata">

**Author:** ![A\_P\_abhisek](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/a_p_abhisek/32/34049_2.png) [@A\_P\_abhisek](https://root-forum.cern.ch/u/A_P_abhisek)\
**Post date:** [May 14, 2024, 1:40pm UTC](https://root-forum.cern.ch/t/root-c-in-windows/59332/44 "2024-05-14T13:40:29Z")

</div>

It worked, **THANK YOU A LOT**.

---

<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:** [May 14, 2024, 1:40pm UTC](https://root-forum.cern.ch/t/root-c-in-windows/59332/45 "2024-05-14T13:40:47Z")

</div>

You’re very welcome!

[Previous page](https://root-forum.cern.ch/t/root-c-in-windows/59332.md?page=2)
