# \#cling

**URL:** https://root-forum.cern.ch/tag/cling/36.md

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

---

## [Installation issue in Ubuntu 26.04.1 LTS](https://root-forum.cern.ch/t/installation-issue-in-ubuntu-26-04-1-lts/65029)

<div class="topic-metadata">

**Author:** [@Soumalya](https://root-forum.cern.ch/u/Soumalya)\
**Replies:** 3\
**Last updated:** [October 23, 2026, 12:24pm UTC](https://root-forum.cern.ch/t/installation-issue-in-ubuntu-26-04-1-lts/65029 "2026-10-23T12:24:21Z")

</div>

At 63% of building from source this error occurs. ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths! ERROR in cling::CIFactory::createCI(): cannot extract standard library include pa…

---

## [Embedded Cling partially working](https://root-forum.cern.ch/t/embedded-cling-partially-working/64999)

<div class="topic-metadata">

**Author:** [@frost\_nova](https://root-forum.cern.ch/u/frost_nova)\
**Replies:** 1\
**Last updated:** [September 28, 2026, 9:40am UTC](https://root-forum.cern.ch/t/embedded-cling-partially-working/64999 "2026-09-28T09:40:06Z")

</div>

Hi, I’ve been interested on using ROOT Cling as part of a project that reads external \*.cpp files to expand itself, however I ran into multiple hurdles trying to properly setup a working demo. my current setup consist …

---

## [Silent crash when adding key to nlohmann::json object with semicolon omitted](https://root-forum.cern.ch/t/silent-crash-when-adding-key-to-nlohmann-json-object-with-semicolon-omitted/64550)

<div class="topic-metadata">

**Author:** [@Ako\_b](https://root-forum.cern.ch/u/Ako_b)\
**Replies:** 3\
**Last updated:** [May 21, 2026, 1:12pm UTC](https://root-forum.cern.ch/t/silent-crash-when-adding-key-to-nlohmann-json-object-with-semicolon-omitted/64550 "2026-05-21T13:12:09Z")

</div>

Describe the bug ROOT interpreter crashes silently (even debug build) when a key with non-null value is added to a nlohmann::json object and semicolon at the end of line is omitted. Expected behavior No crash, the conte…

---

## [Clinglite + idacling : C++ REPL for IDA Pro](https://root-forum.cern.ch/t/clinglite-idacling-c-repl-for-ida-pro/64775)

<div class="topic-metadata">

**Author:** [@0xeb](https://root-forum.cern.ch/u/0xeb)\
**Replies:** 1\
**Last updated:** [March 31, 2026, 8:54am UTC](https://root-forum.cern.ch/t/clinglite-idacling-c-repl-for-ida-pro/64775 "2026-03-31T08:54:21Z")

</div>

Hello I am new here. I recently used Cling in a reverse engineering (RE) program and gave it the C++ REPL. The results were pretty powerful. First, I wrapped Cling into a more lightweight convenient wrapper I called “C…

---

## [What is the proper way to structure C++ macros with modularity in mind?](https://root-forum.cern.ch/t/what-is-the-proper-way-to-structure-c-macros-with-modularity-in-mind/64598)

<div class="topic-metadata">

**Author:** [@deltaSpawn0040](https://root-forum.cern.ch/u/deltaSpawn0040)\
**Replies:** 1\
**Last updated:** [January 20, 2026, 3:27am UTC](https://root-forum.cern.ch/t/what-is-the-proper-way-to-structure-c-macros-with-modularity-in-mind/64598 "2026-01-20T03:27:17Z")

</div>

ROOT Version: 6.34.08 (Yes, I know this is not the latest version) Platform: NixOS Linux, x86\_64 Compiler: Cling (if that is the default when nothing has been done to change it) This installation of ROOT is from Nixp…

---

## [Scope issue with Cling?](https://root-forum.cern.ch/t/scope-issue-with-cling/64264)

<div class="topic-metadata">

**Author:** [@Nick\_van\_Eijndhoven](https://root-forum.cern.ch/u/Nick_van_Eijndhoven)\
**Replies:** 6\
**Last updated:** [October 7, 2025, 12:58pm UTC](https://root-forum.cern.ch/t/scope-issue-with-cling/64264 "2025-10-07T12:58:15Z")

</div>

Please read tips for efficient and successful posting and posting code Hi, I wonder whether there is a solution for the following Cling scope issue that I encountered. ncfs\>root -b -q -e ‘gROOT-\>LoadMacro(“NcAstrolab…

---

## [Strange warning from ACLiC (or Cling)?](https://root-forum.cern.ch/t/strange-warning-from-aclic-or-cling/64266)

<div class="topic-metadata">

**Author:** [@Nick\_van\_Eijndhoven](https://root-forum.cern.ch/u/Nick_van_Eijndhoven)\
**Replies:** 3\
**Last updated:** [October 2, 2025, 7:50am UTC](https://root-forum.cern.ch/t/strange-warning-from-aclic-or-cling/64266 "2025-10-02T07:50:54Z")

</div>

Hi, In compiling my class NcAstrolab2.cxx within ROOT via ACLiC I get the following warning, which I didn’t see using gcc on the same system. I have attached the source files NcAstrolab2.h and NcAstrolab2.cxx as well a…

---

## [Generating events in simulation never complete](https://root-forum.cern.ch/t/generating-events-in-simulation-never-complete/63818)

<div class="topic-metadata">

**Author:** [@Brian\_Huang](https://root-forum.cern.ch/u/Brian_Huang)\
**Replies:** 5\
**Last updated:** [July 8, 2025, 4:10pm UTC](https://root-forum.cern.ch/t/generating-events-in-simulation-never-complete/63818 "2025-07-08T16:10:42Z")

</div>

Hi guys, I want to run my simulation to generate events and create root file, I’m using macOS:15.5, ROOT: 6.36.0, Geant4: 11.2.0. I have Xcode installed, and I’m running it from Terminal Every time I try to run the s…

---

## [Persistent Memory Growth when using cling::Interpreter in a Request Loop](https://root-forum.cern.ch/t/persistent-memory-growth-when-using-cling-interpreter-in-a-request-loop/63485)

<div class="topic-metadata">

**Author:** [@zhu\_le](https://root-forum.cern.ch/u/zhu_le)\
**Replies:** 3\
**Last updated:** [May 2, 2025, 11:03am UTC](https://root-forum.cern.ch/t/persistent-memory-growth-when-using-cling-interpreter-in-a-request-loop/63485 "2025-05-02T11:03:55Z")

</div>

I’m encountering a significant issue with memory usage when using cling::Interpreter within a C++ HTTP server. It appears that memory is not being fully released after each use of the interpreter, leading to a steady inc…

---

## [CMake library does not load in root macro](https://root-forum.cern.ch/t/cmake-library-does-not-load-in-root-macro/63078)

<div class="topic-metadata">

**Author:** [@nnathans](https://root-forum.cern.ch/u/nnathans)\
**Replies:** 13\
**Last updated:** [March 5, 2025, 2:51pm UTC](https://root-forum.cern.ch/t/cmake-library-does-not-load-in-root-macro/63078 "2025-03-05T14:51:59Z")

</div>

Hi, I have been trying to use ROOT in a CMake project and have come up against an issue. I have a group of custom classes in .cxx files with associated header .h files. Now I want to create a shared dynamic dictionary,…

---

## [How to use libCling.so in other c++ project](https://root-forum.cern.ch/t/how-to-use-libcling-so-in-other-c-project/62645)

<div class="topic-metadata">

**Author:** [@jerryjin](https://root-forum.cern.ch/u/jerryjin)\
**Replies:** 3\
**Last updated:** [January 14, 2025, 2:37am UTC](https://root-forum.cern.ch/t/how-to-use-libcling-so-in-other-c-project/62645 "2025-01-14T02:37:41Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: v6-34-02@v6-34-02 \_Platform: ubuntu 24.04 \_Compiler: gcc Hello, I’m new to ROOT, I just used the root-docker for a few weeks. I …

---

## [CERN ROOT Mode for Emacs](https://root-forum.cern.ch/t/cern-root-mode-for-emacs/59381)

<div class="topic-metadata">

**Author:** [@jaymorgan](https://root-forum.cern.ch/u/jaymorgan)\
**Replies:** 3\
**Last updated:** [January 6, 2025, 7:47am UTC](https://root-forum.cern.ch/t/cern-root-mode-for-emacs/59381 "2025-01-06T07:47:56Z")

</div>

Hello, everyone. If you’re a fan of Emacs, then I’ve created a simple CERN ROOT mode for interacting with the cling REPL in an emacsy way (https://github.com/jaypmorgan/cern-root-mode). In my work, I’ve found it to be qu…

---

## [Cling fails when std::pow and ROOT::Math::IntegratorMultiDim are present](https://root-forum.cern.ch/t/cling-fails-when-std-pow-and-root-integratormultidim-are-present/62508)

<div class="topic-metadata">

**Author:** [@arossia94](https://root-forum.cern.ch/u/arossia94)\
**Replies:** 2\
**Last updated:** [December 19, 2024, 1:00pm UTC](https://root-forum.cern.ch/t/cling-fails-when-std-pow-and-root-integratormultidim-are-present/62508 "2024-12-19T13:00:55Z")

</div>

Dear all, I’m facing issues with cling when running this C++ code: #include \<iostream\> #include \<stdio.h\> #include \<complex.h\> #include "TMath.h" Double\_t mw = 79.82436 ; Double\_t mz = 91.1876 ; Double\_t sW2 = 1.0- st…

---

## [Issues with conda installation of root 6.32 on MacOS](https://root-forum.cern.ch/t/issues-with-conda-installation-of-root-6-32-on-macos/62467)

<div class="topic-metadata">

**Author:** [@abrac](https://root-forum.cern.ch/u/abrac)\
**Replies:** 6\
**Last updated:** [December 15, 2024, 3:29pm UTC](https://root-forum.cern.ch/t/issues-with-conda-installation-of-root-6-32-on-macos/62467 "2024-12-15T15:29:04Z")

</div>

Hi all, I recently tried updating ROOT on my MacOS machine (running on an apple M1 chip, and running version 14.3.1) from conda. After doing so, I bumped into this error trying to run it: error:\* \*header ‘mdspan’ not f…

---

## [ROOT 6.32 and Boost.Asio Conflict?](https://root-forum.cern.ch/t/root-6-32-and-boost-asio-conflict/61715)

<div class="topic-metadata">

**Author:** [@Salomon](https://root-forum.cern.ch/u/Salomon)\
**Replies:** 7\
**Last updated:** [October 1, 2024, 11:20am UTC](https://root-forum.cern.ch/t/root-6-32-and-boost-asio-conflict/61715 "2024-10-01T11:20:03Z")

</div>

ROOT 6.32.04 Built for linuxx8664gcc on Aug 14 2024, 04:01:00 From tags/v6-32-04@v6-32-04 With c++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0 Dear ROOT Team, TLDR; I tried to use Boost.Asio with ROOT. And I got an access is…

---

## [How to unify named and anonymous scripts?](https://root-forum.cern.ch/t/how-to-unify-named-and-anonymous-scripts/59694)

<div class="topic-metadata">

**Author:** [@Salomon](https://root-forum.cern.ch/u/Salomon)\
**Replies:** 14\
**Last updated:** [June 21, 2024, 7:17am UTC](https://root-forum.cern.ch/t/how-to-unify-named-and-anonymous-scripts/59694 "2024-06-21T07:17:20Z")

</div>

Hello, I would like to unify “named” and “anonymous” scripts in a single file. Named Script Feeding Sources Files To ROOT: C++ Scripts mentions named script, for instance: void named() { int a=0; } named.C (30 By…

---

## [Using cling with CUDA enabled](https://root-forum.cern.ch/t/using-cling-with-cuda-enabled/47434)

<div class="topic-metadata">

**Author:** [@alstown](https://root-forum.cern.ch/u/alstown)\
**Replies:** 6\
**Last updated:** [March 17, 2024, 3:10pm UTC](https://root-forum.cern.ch/t/using-cling-with-cuda-enabled/47434 "2024-03-17T15:10:48Z")

</div>

I would ultimately like to use Cling + CUDA in a Jupyter notebook if this is not the right place for this please let me know. Is there usage documentation elsewhere for Cling + CUDA? I have looked regarding CUDA usage …

---

## [Cling kernel for Jupyter on Windows does not work](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207)

<div class="topic-metadata">

**Author:** [@nickolayl](https://root-forum.cern.ch/u/nickolayl)\
**Replies:** 8\
**Last updated:** [February 26, 2024, 4:34pm UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207 "2024-02-26T16:34:45Z")

</div>

Dear Root Community, I have the following problem: C++ cling kernels for Jupyter fail to run in Jupyter. I can see the icons for all 4 kernels but when I try any of the C++ cling kernels they fail to start with the erro…

---

## [Cling error](https://root-forum.cern.ch/t/cling-error/57458)

<div class="topic-metadata">

**Author:** [@catfish](https://root-forum.cern.ch/u/catfish)\
**Replies:** 9\
**Last updated:** [December 10, 2023, 12:52pm UTC](https://root-forum.cern.ch/t/cling-error/57458 "2023-12-10T12:52:23Z")

</div>

Helo i have tried to install the cling and when i open it i get following error: ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths! Invoking: LC\_ALL=C x86\_64-linux-gnu-g+±9 -O3 -DN…

---

## [A weird problem with TLorentzVector masses](https://root-forum.cern.ch/t/a-weird-problem-with-tlorentzvector-masses/56905)

<div class="topic-metadata">

**Author:** [@Traruh\_Synred](https://root-forum.cern.ch/u/Traruh_Synred)\
**Replies:** 3\
**Last updated:** [October 30, 2023, 2:10am UTC](https://root-forum.cern.ch/t/a-weird-problem-with-tlorentzvector-masses/56905 "2023-10-30T02:10:38Z")

</div>

\_ROOT Version:6.28 \_Platform:Windows 11 \_Compiler:Cling or I think MS Visual c++ Weird problem with consent masses from virtually the same TLorentzVector. The problem occurs whether I compile or not. Here are the two…

---

## [Can cling be successfully used under Android?](https://root-forum.cern.ch/t/can-cling-be-successfully-used-under-android/56252)

<div class="topic-metadata">

**Author:** [@james\_white](https://root-forum.cern.ch/u/james_white)\
**Replies:** 1\
**Last updated:** [September 3, 2023, 7:46am UTC](https://root-forum.cern.ch/t/can-cling-be-successfully-used-under-android/56252 "2023-09-03T07:46:49Z")

</div>

When using cling in the Android operating system, I found the following problems: 1 error: ValueExtractionSynthesizer could not find: ‘cling namespace’.The value of the returned cling::Value is also wrong. 2 当我调用cling:…

---

## [The correct usage of cling::Interpreter](https://root-forum.cern.ch/t/the-correct-usage-of-cling-interpreter/56191)

<div class="topic-metadata">

**Author:** [@james\_white](https://root-forum.cern.ch/u/james_white)\
**Replies:** 2\
**Last updated:** [September 1, 2023, 8:26am UTC](https://root-forum.cern.ch/t/the-correct-usage-of-cling-interpreter/56191 "2023-09-01T08:26:30Z")

</div>

My work consists of four CPP files, with two of them involving mutual function calls. In dep.cpp, the onStart function calls the show function in the dog.cpp file. When using cling::Interpreter to declare these CPP files…

---

## [Building custom library: issue when including custom-installed headers in macro](https://root-forum.cern.ch/t/building-custom-library-issue-when-including-custom-installed-headers-in-macro/55896)

<div class="topic-metadata">

**Author:** [@loopset](https://root-forum.cern.ch/u/loopset)\
**Replies:** 2\
**Last updated:** [August 17, 2023, 7:13pm UTC](https://root-forum.cern.ch/t/building-custom-library-issue-when-including-custom-installed-headers-in-macro/55896 "2023-08-17T19:13:41Z")

</div>

Hi, I’m building a custom library to analyze and simulate some detector data using ROOT classes. Recently, I moved to a scheme where I have subfolders for each component (Analysis, Simulation,…) and compile them separat…

---

## [Memory hoarding with RDFs](https://root-forum.cern.ch/t/memory-hoarding-with-rdfs/53914)

<div class="topic-metadata">

**Author:** [@MoAly98](https://root-forum.cern.ch/u/MoAly98)\
**Replies:** 18\
**Last updated:** [March 9, 2023, 10:50pm UTC](https://root-forum.cern.ch/t/memory-hoarding-with-rdfs/53914 "2023-03-09T22:50:10Z")

</div>

Hi, I am running some code using RDFs and Root 6.22/06. The analysis code I am working on intends to sklim some ROOT N-tuples, adding some new computed branches and removing some branches. I am trying to do this sklimm…

---

## [Newbie Break Segmentation violation: libRint libCore libCling](https://root-forum.cern.ch/t/newbie-break-segmentation-violation-librint-libcore-libcling/53210)

<div class="topic-metadata">

**Author:** [@bizarre](https://root-forum.cern.ch/u/bizarre)\
**Replies:** 2\
**Last updated:** [January 22, 2023, 10:20pm UTC](https://root-forum.cern.ch/t/newbie-break-segmentation-violation-librint-libcore-libcling/53210 "2023-01-22T22:20:27Z")

</div>

Hi, I have just started working with root two days ago. I have created this macro that im gonna write up here since i am not allowed to post links as a new user. Its supposed to fill a 10 by 10 vector with random values…

---

## [Error reading std::vectors of custom classes interactively with the ROOT console](https://root-forum.cern.ch/t/error-reading-std-vectors-of-custom-classes-interactively-with-the-root-console/52627)

<div class="topic-metadata">

**Author:** [@jasot](https://root-forum.cern.ch/u/jasot)\
**Replies:** 13\
**Last updated:** [December 16, 2022, 1:04am UTC](https://root-forum.cern.ch/t/error-reading-std-vectors-of-custom-classes-interactively-with-the-root-console/52627 "2022-12-16T01:04:30Z")

</div>

Dear colleagues, I have a CMake-compiled code that creates a tree of some custom classes and saves it in a ROOT file. The code works well, and the problem appears when I try to access some compiled functions interactive…

---

## [\*\*\* Break \*\*\* segmentation violation due to a SetBranchAddress](https://root-forum.cern.ch/t/break-segmentation-violation-due-to-a-setbranchaddress/52207)

<div class="topic-metadata">

**Author:** [@gale](https://root-forum.cern.ch/u/gale)\
**Replies:** 4\
**Last updated:** [November 4, 2022, 1:35am UTC](https://root-forum.cern.ch/t/break-segmentation-violation-due-to-a-setbranchaddress/52207 "2022-11-04T01:35:37Z")

</div>

ROOT Version: root/6.26.06\_1 Platform: Not Provided Compiler: cling (I think) Hi everyone, I have been running a macro for a few weeks with no problems, slowly adding on to it and it stopped working at some point. I…

---

## [Cling Newbie Intro Document](https://root-forum.cern.ch/t/cling-newbie-intro-document/50403)

<div class="topic-metadata">

**Author:** [@geneweber](https://root-forum.cern.ch/u/geneweber)\
**Replies:** 3\
**Last updated:** [June 21, 2022, 10:46am UTC](https://root-forum.cern.ch/t/cling-newbie-intro-document/50403 "2022-06-21T10:46:40Z")

</div>

Hi, There doesn’t seem to be a lot of introductory level information for Cling online. I learned the basics by reading the forum, asking a couple questions on the forum, exploring the code, and experimenting. I’m planni…

---

## [C++ std symbols polluting cling](https://root-forum.cern.ch/t/c-std-symbols-polluting-cling/50351)

<div class="topic-metadata">

**Author:** [@ccorti](https://root-forum.cern.ch/u/ccorti)\
**Replies:** 5\
**Last updated:** [June 16, 2022, 9:26am UTC](https://root-forum.cern.ch/t/c-std-symbols-polluting-cling/50351 "2022-06-16T09:26:43Z")

</div>

Dear experts, when using the interpreter, C++ std symbols pollute the namespace, even if I set Rint.Includes: 0 in .rootrc. An example: root \[0\] int data = 1 (int) 1 root \[1\] data = 2 ROOT\_prompt\_1:1:1: error: referen…

---

## [How to write a file in Cling non-interactive mode](https://root-forum.cern.ch/t/how-to-write-a-file-in-cling-non-interactive-mode/50380)

<div class="topic-metadata">

**Author:** [@geneweber](https://root-forum.cern.ch/u/geneweber)\
**Replies:** 2\
**Last updated:** [June 13, 2022, 6:05pm UTC](https://root-forum.cern.ch/t/how-to-write-a-file-in-cling-non-interactive-mode/50380 "2022-06-13T18:05:04Z")

</div>

Cling Version: 1.0 dev Platform: Ubuntu Linux 20.04.1 Compiler: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 Hi, I’d like to be able to do file io running Cling in non-interactive mode. Running interactively, given th…

[Next page](https://root-forum.cern.ch/tag/cling/36.md?match_all_tags=true&page=1&tags%5B%5D=cling)
