# Cling

**URL:** https://root-forum.cern.ch/c/cling/8.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)

---

## [About the Cling category](https://root-forum.cern.ch/t/about-the-cling-category/42)

<div class="topic-metadata">

**Author:** [@system](https://root-forum.cern.ch/u/system)\
**Replies:** 0\
**Last updated:** [January 13, 2017, 11:40am UTC](https://root-forum.cern.ch/t/about-the-cling-category/42 "2017-01-13T11:40:53Z")

</div>

This category is to discuss about Cling. Please post bug reports in Jira.

---

## [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…

---

## [Is there non blocking equivalent to TMethodCall::Execute?](https://root-forum.cern.ch/t/is-there-non-blocking-equivalent-to-tmethodcall-execute/64607)

<div class="topic-metadata">

**Author:** [@goetzgaycken](https://root-forum.cern.ch/u/goetzgaycken)\
**Replies:** 10\
**Last updated:** [February 16, 2026, 12:33pm UTC](https://root-forum.cern.ch/t/is-there-non-blocking-equivalent-to-tmethodcall-execute/64607 "2026-02-16T12:33:42Z")

</div>

Hello, In an old piece of code, we use in Atlas, there is an expression parser which uses MethodCall::Execute (e.g. “double ret; void \*obj=…;m\_method→Execute(obj,ret);") to invoke methods of an object e.g. Muon::pt() c…

---

## [Interpreter can't print valarray value](https://root-forum.cern.ch/t/interpreter-cant-print-valarray-value/64357)

<div class="topic-metadata">

**Author:** [@petrillo](https://root-forum.cern.ch/u/petrillo)\
**Replies:** 1\
**Last updated:** [October 25, 2025, 12:04pm UTC](https://root-forum.cern.ch/t/interpreter-cant-print-valarray-value/64357 "2025-10-25T12:04:36Z")

</div>

The ROOT interpreter (6.36.04) seems to fail to print a std::valarray object. root \[0\] std::valarray\<float\> v(10); root \[1\] v In module 'Cling\_Runtime' imported from input\_line\_2:1: /usr/share/root/cling/Interpreter/Run…

---

## [Error in \<TQObject::CheckConnectArgs\>: slot XXX does not exist](https://root-forum.cern.ch/t/error-in-tqobject-checkconnectargs-slot-xxx-does-not-exist/20098)

<div class="topic-metadata">

**Author:** [@zorzin](https://root-forum.cern.ch/u/zorzin)\
**Replies:** 11\
**Last updated:** [October 21, 2025, 10:05am UTC](https://root-forum.cern.ch/t/error-in-tqobject-checkconnectargs-slot-xxx-does-not-exist/20098 "2025-10-21T10:05:26Z")

</div>

Hi, please find a ZIP files attached to this mail: it contains a small Xcode project. With this code my intention is to simply open a window, create a pad with a graph and plot a sinusoid in it. Later on I would be abl…

---

## [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…

---

## [Compiling dynamic library with ACLIC using "-rpath"](https://root-forum.cern.ch/t/compiling-dynamic-library-with-aclic-using-rpath/63214)

<div class="topic-metadata">

**Author:** [@nazar\_sokour](https://root-forum.cern.ch/u/nazar_sokour)\
**Replies:** 2\
**Last updated:** [March 25, 2025, 7:04pm UTC](https://root-forum.cern.ch/t/compiling-dynamic-library-with-aclic-using-rpath/63214 "2025-03-25T19:04:15Z")

</div>

Hello. I want to compile dynamic library with ACLIC and link it it with another library compiled by gcc. And then use this library in CLING. How can i do that? That’s what I have: “ns\_lib.hpp”: #ifndef \_NS\_LIB\_HPP\_ #…

---

## [Is it possible to embedded cling in unreal engine](https://root-forum.cern.ch/t/is-it-possible-to-embedded-cling-in-unreal-engine/62210)

<div class="topic-metadata">

**Author:** [@Evianaive](https://root-forum.cern.ch/u/Evianaive)\
**Replies:** 6\
**Last updated:** [November 26, 2024, 4:29pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-embedded-cling-in-unreal-engine/62210 "2024-11-26T16:29:19Z")

</div>

I always look forward to finding a script solution for Unreal Engine development. I think the best approach is to interpret CPP directly, which is why I found cling. However, there is a problem I am not sure about. It’s…

---

## [Root got error with anaconda](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687)

<div class="topic-metadata">

**Author:** [@yiyu](https://root-forum.cern.ch/u/yiyu)\
**Replies:** 6\
**Last updated:** [September 30, 2024, 3:50am UTC](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687 "2024-09-30T03:50:53Z")

</div>

Hi expert, I use conda to install root and succeed. however when I type root, it report the following message /opt/anaconda3/envs/hep/etc/cling/std\_darwin.modulemap:153:10: error: header ‘mdspan’ not found header “md…

---

## [Problem importing ROOT in Jupyter logbook with macOS 15.0](https://root-forum.cern.ch/t/problem-importing-root-in-jupyter-logbook-with-macos-15-0/61753)

<div class="topic-metadata">

**Author:** [@marianna\_vagnoni](https://root-forum.cern.ch/u/marianna_vagnoni)\
**Replies:** 5\
**Last updated:** [September 29, 2024, 11:45am UTC](https://root-forum.cern.ch/t/problem-importing-root-in-jupyter-logbook-with-macos-15-0/61753 "2024-09-29T11:45:08Z")

</div>

Hello to everyone! I have a problem in my Jupyter logbook when I import ROOT. I’m using the kernel base(Python 3.12.6) from miniconda3, but I think that there is something that doesn’t work with ROOT. In particular, I …

---

## [Cling 1.1 for Ubuntu 22.04 and 24.04](https://root-forum.cern.ch/t/cling-1-1-for-ubuntu-22-04-and-24-04/61764)

<div class="topic-metadata">

**Author:** [@dimitry\_ishenko](https://root-forum.cern.ch/u/dimitry_ishenko)\
**Replies:** 6\
**Last updated:** [September 25, 2024, 5:35pm UTC](https://root-forum.cern.ch/t/cling-1-1-for-ubuntu-22-04-and-24-04/61764 "2024-09-25T17:35:15Z")

</div>

For my fellow Ubuntu users out there, I’ve created native (.deb) Ubuntu packages for cling 1.1. :tada: :drum: :tada: :drum: They are located here: ppa:ppa-verse/cling Installation is as easy as: sudo add-apt-reposito…

---

## [Cling kernel doesn't work for jupyter on Windows](https://root-forum.cern.ch/t/cling-kernel-doesnt-work-for-jupyter-on-windows/61653)

<div class="topic-metadata">

**Author:** [@yaner](https://root-forum.cern.ch/u/yaner)\
**Replies:** 2\
**Last updated:** [September 19, 2024, 2:27pm UTC](https://root-forum.cern.ch/t/cling-kernel-doesnt-work-for-jupyter-on-windows/61653 "2024-09-19T14:27:54Z")

</div>

It seems that so many people have problems to installing cling on Windows platform, so do I. When executing root --notebook, it firstly throws FileNotFoundError for missing python3.11. I quickly realized that there’s on…

---

## [Cling and RDFs](https://root-forum.cern.ch/t/cling-and-rdfs/60400)

<div class="topic-metadata">

**Author:** [@Jordy\_Degens](https://root-forum.cern.ch/u/Jordy_Degens)\
**Replies:** 5\
**Last updated:** [August 2, 2024, 2:42pm UTC](https://root-forum.cern.ch/t/cling-and-rdfs/60400 "2024-08-02T14:42:16Z")

</div>

I am trying to link a c++ library via cmake and use objects within RDF code. I created a “Jets” class which is basically a class with a few Rvecs as members. I get it to compile, however when I do a define call for the r…

---

## [Can mutex and its locking and unlocking features be used in CLING interpreter?](https://root-forum.cern.ch/t/can-mutex-and-its-locking-and-unlocking-features-be-used-in-cling-interpreter/59274)

<div class="topic-metadata">

**Author:** [@prabhu634](https://root-forum.cern.ch/u/prabhu634)\
**Replies:** 17\
**Last updated:** [May 29, 2024, 1:05pm UTC](https://root-forum.cern.ch/t/can-mutex-and-its-locking-and-unlocking-features-be-used-in-cling-interpreter/59274 "2024-05-29T13:05:09Z")

</div>

Hi @bellenot and @vvassilev , I am trying syncronisation between two threads in a cpp script on CLING interpreter. But, I see that, when I use mutex synchronisation using mtx.lock() and mtx.unlock() in the thread funct…

---

## [Armadillo functions not working through Cling](https://root-forum.cern.ch/t/armadillo-functions-not-working-through-cling/59036)

<div class="topic-metadata">

**Author:** [@ShadowOne333](https://root-forum.cern.ch/u/ShadowOne333)\
**Replies:** 2\
**Last updated:** [April 19, 2024, 3:01pm UTC](https://root-forum.cern.ch/t/armadillo-functions-not-working-through-cling/59036 "2024-04-19T15:01:56Z")

</div>

I’ve been trying to use Cling for the last week or so, and while C and C++ code seems to work just fine, I found some issues when trying to incorporate some additional libraries to use in my C++ code through Cling. Arma…

---

## [Cling 1.1 release plans](https://root-forum.cern.ch/t/cling-1-1-release-plans/58991)

<div class="topic-metadata">

**Author:** [@dimitry\_ishenko](https://root-forum.cern.ch/u/dimitry_ishenko)\
**Replies:** 4\
**Last updated:** [April 16, 2024, 1:11am UTC](https://root-forum.cern.ch/t/cling-1-1-release-plans/58991 "2024-04-16T01:11:23Z")

</div>

If I understand it correctly, clang 1.1 will be based on Clang/LLVM 16. :gift: That would be a major improvement since earlier versions of Clang/LLVM don’t support ranges introduced in C++20. Do you have a road-map and…

---

## [Rootcling invalid integral value](https://root-forum.cern.ch/t/rootcling-invalid-integral-value/58962)

<div class="topic-metadata">

**Author:** [@zhulcher](https://root-forum.cern.ch/u/zhulcher)\
**Replies:** 2\
**Last updated:** [April 11, 2024, 10:39pm UTC](https://root-forum.cern.ch/t/rootcling-invalid-integral-value/58962 "2024-04-11T22:39:25Z")

</div>

Hi, in at least root 6.28.4 to 6.30.4 installed with conda python3.9 to python3.11 on my mac m1, running rootcling with any valid arguments afterwards produces error: invalid integral value '0 -fno-omit-frame-pointer' i…

---

## [TClassMenuItem not connected to function](https://root-forum.cern.ch/t/tclassmenuitem-not-connected-to-function/58098)

<div class="topic-metadata">

**Author:** [@Emmanuel](https://root-forum.cern.ch/u/Emmanuel)\
**Replies:** 14\
**Last updated:** [February 13, 2024, 4:30pm UTC](https://root-forum.cern.ch/t/tclassmenuitem-not-connected-to-function/58098 "2024-02-13T16:30:43Z")

</div>

Hi, I’m currently porting a software from root5 to root6. I’m experiencing an issue where the menuitem are not triggering the functions they are supposed to. I’m using the root API from a C++ compiled application. Menu …

---

## [Cling JIT session error: Cannot allocate memory](https://root-forum.cern.ch/t/cling-jit-session-error-cannot-allocate-memory/56744)

<div class="topic-metadata">

**Author:** [@JKempster](https://root-forum.cern.ch/u/JKempster)\
**Replies:** 17\
**Last updated:** [December 18, 2023, 10:59am UTC](https://root-forum.cern.ch/t/cling-jit-session-error-cannot-allocate-memory/56744 "2023-12-18T10:59:36Z")

</div>

Hello, I am using a common ATLAS wrapper to generate the workspace for a very large fit within ROOT, via RooStats and HistFactory etc. I am using ROOT version 6.28/04. The machine I am running on is very beefy (250GB RA…

---

## [Weird error output from Cling](https://root-forum.cern.ch/t/weird-error-output-from-cling/19410)

<div class="topic-metadata">

**Author:** [@KD0BPV](https://root-forum.cern.ch/u/KD0BPV)\
**Replies:** 4\
**Last updated:** [December 12, 2023, 11:12pm UTC](https://root-forum.cern.ch/t/weird-error-output-from-cling/19410 "2023-12-12T23:12:19Z")

</div>

I'm getting some weird errors from cling when I try to run a test script through it. The same code works just fine through cint. If I don't uncomment any she-bangs, clang and gcc also compile it fine, and the binary work…

---

## [Use of undeclared identifier](https://root-forum.cern.ch/t/use-of-undeclared-identifier/57202)

<div class="topic-metadata">

**Author:** [@cw2636](https://root-forum.cern.ch/u/cw2636)\
**Replies:** 12\
**Last updated:** [November 24, 2023, 10:07am UTC](https://root-forum.cern.ch/t/use-of-undeclared-identifier/57202 "2023-11-24T10:07:28Z")

</div>

After successful installing cling. I need to test the interpreter part of it. I create a simple script which is included at the end for some reason i am getting this error. input\_line\_9:5:15: error: use of undeclared id…

---

## [How i can build cling.cpp, and create an executable without using the CMakeLists.txt](https://root-forum.cern.ch/t/how-i-can-build-cling-cpp-and-create-an-executable-without-using-the-cmakelists-txt/57139)

<div class="topic-metadata">

**Author:** [@cw2636](https://root-forum.cern.ch/u/cw2636)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 8:48am UTC](https://root-forum.cern.ch/t/how-i-can-build-cling-cpp-and-create-an-executable-without-using-the-cmakelists-txt/57139 "2023-11-17T08:48:19Z")

</div>

I am trying to create a custom c++ interpreter using cling. In tools/driver there is a cling.cpp file which i am trying to compile locally so i can use similar file to add my custom fucntions or classes, which will be he…

---

## [Embedding cling in a compiled C++ program](https://root-forum.cern.ch/t/embedding-cling-in-a-compiled-c-program/24038)

<div class="topic-metadata">

**Author:** [@artsera](https://root-forum.cern.ch/u/artsera)\
**Replies:** 21\
**Last updated:** [November 16, 2023, 5:11pm UTC](https://root-forum.cern.ch/t/embedding-cling-in-a-compiled-c-program/24038 "2023-11-16T17:11:36Z")

</div>

Hello folks, I am writing a rules engine for an AI module. The module will store and retrieve rule sets from a database. The intention is for the module to edit/enhance/correct rule sets which will then be executed b…

---

## [Cling (Clang-13) compile errors on Ubuntu 22.04, using ubuntu clang++14](https://root-forum.cern.ch/t/cling-clang-13-compile-errors-on-ubuntu-22-04-using-ubuntu-clang-14/56866)

<div class="topic-metadata">

**Author:** [@marvin\_littlewood](https://root-forum.cern.ch/u/marvin_littlewood)\
**Replies:** 2\
**Last updated:** [October 27, 2023, 10:24am UTC](https://root-forum.cern.ch/t/cling-clang-13-compile-errors-on-ubuntu-22-04-using-ubuntu-clang-14/56866 "2023-10-27T10:24:05Z")

</div>

Hello, I am using ROOT’s cling to write a textbook and was curious to see whether I could build it myself, first in Linux and then possibly using Termux. I used the script on the Cling Build Instructions page to build: …

---

## [Cling jit and openmp preprocessor directive](https://root-forum.cern.ch/t/cling-jit-and-openmp-preprocessor-directive/29807)

<div class="topic-metadata">

**Author:** [@Robi](https://root-forum.cern.ch/u/Robi)\
**Replies:** 5\
**Last updated:** [October 25, 2023, 3:13pm UTC](https://root-forum.cern.ch/t/cling-jit-and-openmp-preprocessor-directive/29807 "2023-10-25T15:13:24Z")

</div>

Hello, I an trying to use cling as jit in c++ code, but I am wonder if it is possible to handle openmp preprocessor directive using jit. If I have C++ code that need to jit for example: gInterpreter-\>Declare( Form( “#…

---

## [Tab Autocomplete "Error importing declNameConflict"](https://root-forum.cern.ch/t/tab-autocomplete-error-importing-declnameconflict/56727)

<div class="topic-metadata">

**Author:** [@jack.williams](https://root-forum.cern.ch/u/jack.williams)\
**Replies:** 1\
**Last updated:** [October 16, 2023, 3:39pm UTC](https://root-forum.cern.ch/t/tab-autocomplete-error-importing-declnameconflict/56727 "2023-10-16T15:39:51Z")

</div>

Tab autocomplete for methods (eg: std::vector.push\_back) works until our code is loaded into the interpreter (about 10,000 lines). The problem appears more consistently with objects returned by functions: \*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Cling can't load generated dictionaries on a different machine](https://root-forum.cern.ch/t/cling-cant-load-generated-dictionaries-on-a-different-machine/56603)

<div class="topic-metadata">

**Author:** [@weishi](https://root-forum.cern.ch/u/weishi)\
**Replies:** 1\
**Last updated:** [October 4, 2023, 7:02pm UTC](https://root-forum.cern.ch/t/cling-cant-load-generated-dictionaries-on-a-different-machine/56603 "2023-10-04T19:02:06Z")

</div>

Dear experts, I stored some nested vectors in ROOT Ttree which required to generate dictionaries: This worked fine on a local SL7 machine. However once I send the compiled program to the grid, it complains cannot load…

---

## [Examples for using modules with Cling?](https://root-forum.cern.ch/t/examples-for-using-modules-with-cling/56256)

<div class="topic-metadata">

**Author:** [@jeaye](https://root-forum.cern.ch/u/jeaye)\
**Replies:** 11\
**Last updated:** [September 26, 2023, 11:05am UTC](https://root-forum.cern.ch/t/examples-for-using-modules-with-cling/56256 "2023-09-26T11:05:46Z")

</div>

Hey folks. I’ve been digging through the forum and source, trying to find out how I can do the following with Cling: Compile some source to a C++20 module (.pcm) file Load a compiled module into Cling I’m hoping to be…

---

## [Issues with root after the Developer Tools apdate](https://root-forum.cern.ch/t/issues-with-root-after-the-developer-tools-apdate/56410)

<div class="topic-metadata">

**Author:** [@MassimilianoAntonell](https://root-forum.cern.ch/u/MassimilianoAntonell)\
**Replies:** 4\
**Last updated:** [September 19, 2023, 3:17pm UTC](https://root-forum.cern.ch/t/issues-with-root-after-the-developer-tools-apdate/56410 "2023-09-19T15:17:42Z")

</div>

Hello there! I just updated my Xcode Developer Tool in MacOs (apple silicon M1 pro) Ventura 13.5.2 as suggested by apple updates message and now when I run root I got this error at the beginning: root clang: error: arg…

---

## [Compillation of macros and shared libraries](https://root-forum.cern.ch/t/compillation-of-macros-and-shared-libraries/56248)

<div class="topic-metadata">

**Author:** [@Gonzalo](https://root-forum.cern.ch/u/Gonzalo)\
**Replies:** 3\
**Last updated:** [September 5, 2023, 8:17am UTC](https://root-forum.cern.ch/t/compillation-of-macros-and-shared-libraries/56248 "2023-09-05T08:17:15Z")

</div>

This is a dummy version of the problem (using ROOT version 6.24/09): I would like to create a shared library (dummy.cc): #ifdef SUM0 int sum0(int x){return x+0;} #endif int sum1(int x){return x+1;} This can be do…

[Next page](https://root-forum.cern.ch/c/cling/8.md?page=1)
