# What C++ standard is used to build the precompiled binaries?

**URL:** <https://root-forum.cern.ch/t/what-c-standard-is-used-to-build-the-precompiled-binaries/53598>\
**Category:** Newbie\
**Created:** [February 13, 2023, 10:20am UTC](https://root-forum.cern.ch/t/what-c-standard-is-used-to-build-the-precompiled-binaries/53598 "2023-02-13T10:20:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauln](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/c0e974/32.png) [@pauln](https://root-forum.cern.ch/u/pauln)\
**Post date:** [February 13, 2023, 10:20am UTC](https://root-forum.cern.ch/t/what-c-standard-is-used-to-build-the-precompiled-binaries/53598/1 "2023-02-13T10:20:53Z")

</div>

Hi all,

Is there a way to check what c++ standard was used to build a pre-compiled binary distribution of ROOT?

Or is this documented somewhere?

Cheers,  
Paul

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 13, 2023, 10:21am UTC](https://root-forum.cern.ch/t/what-c-standard-is-used-to-build-the-precompiled-binaries/53598/2 "2023-02-13T10:21:45Z")

</div>

`root-config --cflags`

---

<div class="post-metadata">

**Author:** ![Gulshan212](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gulshan212/32/32680_2.png) [@Gulshan212](https://root-forum.cern.ch/u/Gulshan212)\
**Post date:** [March 6, 2023, 9:07am UTC](https://root-forum.cern.ch/t/what-c-standard-is-used-to-build-the-precompiled-binaries/53598/3 "2023-03-06T09:07:40Z")

</div>

Hello this is Gulshan Negi  
Yes, it is possible to determine which C++ standard was utilized in the creation of a ROOT pre-compiled binary distribution.  
Using the strings command on the ROOT binary and searching for the name of the C++ standard library is one method for accomplishing this. You can use the following command, for instance, to determine whether ROOT was developed in accordance with the C++11 standard:

strings path/to/root/binary | grep -i libc++abi.dylib

Hope it will work.  
Thanks

---

<div class="post-metadata">

**Author:** ![pauln](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/c0e974/32.png) [@pauln](https://root-forum.cern.ch/u/pauln)\
**Post date:** [March 6, 2023, 10:12am UTC](https://root-forum.cern.ch/t/what-c-standard-is-used-to-build-the-precompiled-binaries/53598/4 "2023-03-06T10:12:12Z")

</div>

Hi @Gulshan212,

Thank you for your interesting answer! This command does not return anything in the terminal for me, both with a per-compiled binary and a build I compiled myself.

I think the accepted solution provides a simpler means, and also provides some additional info when explored!
