# Exposed global variable in cling

**URL:** <https://root-forum.cern.ch/t/exposed-global-variable-in-cling/62667>\
**Category:** ROOT\
**Tags:** bug\
**Created:** [January 15, 2025, 6:10pm UTC](https://root-forum.cern.ch/t/exposed-global-variable-in-cling/62667 "2025-01-15T18:10:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 15, 2025, 7:17pm UTC](https://root-forum.cern.ch/t/exposed-global-variable-in-cling/62667/2 "2025-01-15T19:17:31Z")

</div>

> [@C++ std symbols polluting cling](https://root-forum.cern.ch/t/c-std-symbols-polluting-cling/50351/4):
>
> Well, this is [a know nuisance](https://root-forum.cern.ch/t/segmentation-violation-when-editing-global-variable-in-compiled-macro/32176/4). How about instead of injecting “using namespace std;”, you inject a precisely described set of “using std::vector;” and “using std::friends;” (and so on for everything you need, and only for that). BTW. A similar unsolved deficiency: [“MakeClass and std::”](https://root-forum.cern.ch/t/makeclass-and-std/9826)

---

_[View the full topic](https://root-forum.cern.ch/t/exposed-global-variable-in-cling/62667)._
