Questions tagged [cling]

Cling is an interactive C++ interpreter, built on the top of LLVM and Clang libraries.

Cling is an interactive C++ interpreter, built on the top of LLVM and Clang libraries.

50 questions
15
votes
1 answer

Run cling on Windows

Is it possible to run cling on Windows? I successfully compiled cling from sources (build instructions) with Visual C++ 12.0, but when I try to run I have the following runtime error: F:\Dev\open-source\Cling\src\build\Debug\bin>cling.exe ERROR in…
grisha
  • 1,247
  • 1
  • 14
  • 20
12
votes
1 answer

How to install Xeus-cling without Anaconda?

Why is Anaconda package manager necessary to install Xeus-cling? I have only used pip so far, and switching to a new package manager seems like a lot of work. I want to start using C++ with Jupyter, but all the installation instructions assume…
pg2455
  • 5,039
  • 14
  • 51
  • 78
6
votes
0 answers

Cling with tomcat

I am trying to create a service to autodiscover upnp devices in my local network, implementing it in a webapplication running on tomcat 7 and using 4thline Cling library. I got this error org.fourthline.cling.transport.RouterImpl…
Antonio Mele
  • 377
  • 1
  • 5
  • 12
5
votes
1 answer

How do you load a library with cling?

This might not even be a cling question, I'm a C++ newbie. I am trying to play around with a library called QuantLib in the cling REPL. I'm able to load the library in GCC by doing #include "ql/quantlib.hpp" and then compiling with -lQuantLib. In…
user674155
5
votes
3 answers

Cling Kernel for Jupyter on Ubuntu

I built Cling on my laptop with Ubuntu 15.04 following the instructions given on https://github.com/root-mirror/cling#jupyter because I wanted to use the Cling kernel for Jupyter. I installed Jupyter, I checked that Cling is in my PATH, but when I…
4
votes
2 answers

Cling API available?

How to use Cling in my app via API to interpret C++ code? I expect it to provide terminal-like way of interaction without need to compile/run executable. Let's say i have hello world program: void main() { cout << "Hello world!" << endl; } I…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
4
votes
1 answer

Using cling inside C++, how to do it?

For a school project my team and I are working on a project in which we are required to use the cling interpreter. We watched several youtube videos about cling and all got it compiled and working on our systems. The problem we are facing is that we…
Bob
  • 811
  • 9
  • 22
3
votes
1 answer

CMake Error: File /cygdrive/.../src/LLVMBuild.txt does not exist

I'm trying to build cling on Windows7 following the instructions here: mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=[Install Path] ..\src cmake --build . --config [Release/Debug] --target cling I notice that the compiler cmake is using being…
zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
2
votes
1 answer

Jupyter notebook error for C++ Kernel[cling]

I have installed cling kernel for using C++ in Jupiter notebook but after implementing the code #include using namespace std; int main() { int a; a=9; cout< error: function…
AbtabM
  • 129
  • 10
2
votes
0 answers

Kernel error in Jupyter with cling

I have this problem. When I launch a c++17 notebook in jupyter, I get the kernel error. However, python3 notebook is working fine. I build cling as per the instructions given in https://github.com/root-project/cling From the trace it is clear that…
Vikas Gupta
  • 10,779
  • 4
  • 35
  • 42
2
votes
1 answer

"Dead Kernel" Anaconda-Jupyter Cling C++ Windows

I newly installed Anaconda (v.4.3.1) and used a conda command to install cling for a C++ kernel on Jupyter. I used conda install -c conda-forge cling=0.3.post I am on Windows 8.1. I can't seem to find an answer on how to resolve this: I'm getting a…
Foon
  • 221
  • 1
  • 7
2
votes
0 answers

cc1plus: error: unrecognized command line option ‘-std=c++11’ while installing Cling in Ubuntu 12.04 using gcc 4.8

I am trying to install Cling(interactive C++ interpreter) from here using the .sh file. While I run the .sh file in the terminal, I get the following errors: cc1plus: error: unrecognized command line option ‘-std=c++11’ Since the default gcc for…
Luminosity
  • 31
  • 1
  • 5
2
votes
0 answers

Using Cling to compile Python C++ extensions

Is it possible to use Cling for compiling C++ python extensions (wrapped using SWIG)? Either by hand or perhaps making a setup that allows a JIT compilation of the C++ extensions without needing to compile C++ code manually?
Davinish
  • 195
  • 1
  • 1
  • 9
2
votes
3 answers

how useful is Cling C++ JIT interpreter developed at CERN?

I recently watched great google talks speech about Cling - C++ language interpreter. But I wonder if anyone except people at CERN (where it is developed) are using Cling, and how good it is from non-collider-physics-scientist point of view, can you…
exebook
  • 32,014
  • 33
  • 141
  • 226
1
vote
1 answer

Is it possible to start a cling repl from inside lldb?

So I coming from a python world, trying to learn cpp fast. (at least the basics). The thing that I miss most from the python world was - how you can just add breakpoint anywhere in the code and start an interactive repl session with the context. I…
spunkpike
  • 94
  • 2
  • 13
1
2 3 4