# Options to compile applications for Cling usage

**URL:** <https://root-forum.cern.ch/t/options-to-compile-applications-for-cling-usage/51443>\
**Category:** ROOT\
**Tags:** rootcling\
**Created:** [September 2, 2022, 5:23pm UTC](https://root-forum.cern.ch/t/options-to-compile-applications-for-cling-usage/51443 "2022-09-02T17:23:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![perev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/9d8465/32.png) [@perev](https://root-forum.cern.ch/u/perev)\
**Post date:** [September 2, 2022, 5:23pm UTC](https://root-forum.cern.ch/t/options-to-compile-applications-for-cling-usage/51443/1 "2022-09-02T17:23:09Z")

</div>

It is written in documentation:  
“…applications that depend on ROOT must be compiled with the  
same C++ standard with which ROOT was compiled”  
But how to get compilation options “exactly the same as Root used”  
My macros crashed with my applications, which was working in Root5.  
Probably it is because of wrong compilation flags  
Victor

* * *

---

<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:** [September 2, 2022, 8:59pm UTC](https://root-forum.cern.ch/t/options-to-compile-applications-for-cling-usage/51443/2 "2022-09-02T20:59:16Z")

</div>

`root-config --cflags`

---

<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:** [September 16, 2022, 8:59pm UTC](https://root-forum.cern.ch/t/options-to-compile-applications-for-cling-usage/51443/3 "2022-09-16T20:59:17Z")

</div>

Closed on September 16, 2022, 8:59pm UTC

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