# Root C version

**URL:** <https://root-forum.cern.ch/t/root-c-version/63660>\
**Category:** Newbie\
**Tags:** root\
**Created:** [June 3, 2025, 7:31am UTC](https://root-forum.cern.ch/t/root-c-version/63660 "2025-06-03T07:31:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wztbxl](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wztbxl/32/37307_2.png) [@wztbxl](https://root-forum.cern.ch/u/wztbxl)\
**Post date:** [June 3, 2025, 7:31am UTC](https://root-forum.cern.ch/t/root-c-version/63660/1 "2025-06-03T07:31:51Z")

</div>

Hello experts,

I am a guy who want to using root in the industry. But we are using the C not C++, Can I find a ROOT version which is using C not C++?

Thanks,  
Zhen

---

<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:** [June 3, 2025, 7:49am UTC](https://root-forum.cern.ch/t/root-c-version/63660/2 "2025-06-03T07:49:48Z")

</div>

Hi @wztbxl ,

ROOT is based on C++ and provide a C++ interpreter: Cling. In principle it should also be able to interpret simple C code. Have you tried to interpret some of your C code examples using ROOT ?

---

<div class="post-metadata">

**Author:** ![wztbxl](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wztbxl/32/37307_2.png) [@wztbxl](https://root-forum.cern.ch/u/wztbxl)\
**Post date:** [June 3, 2025, 8:12am UTC](https://root-forum.cern.ch/t/root-c-version/63660/3 "2025-06-03T08:12:01Z")

</div>

> [@couet](#):
>
> ROOT is based on C++ and provide a C++ interpreter: Cling. In principle it should also be able to interpret simple C code. Have you tried to interpret some of your C code examples using ROOT ?

I need to compile my code to generate an .exe file. So I would like to add the root library to my project, but I realize my project is using C99 standard. Can I directly add the root library to my project or I need to modify it?

---

<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:** [June 3, 2025, 8:58am UTC](https://root-forum.cern.ch/t/root-c-version/63660/4 "2025-06-03T08:58:55Z")

</div>

> [@wztbxl](#):
>
> I would like to add the root library to my project, but I realize my project is using C99 standard.

Since ROOT is a C++ environment, I do not see how you could access its functionality from a C environment. For instance, you will need to instantiate classes at some point, and you cannot do that from C.
