jupyter-xeus / xeus-cling

Jupyter kernel for the C++ programming language
BSD 3-Clause "New" or "Revised" License
3.01k stars 294 forks source link

std::cout doesn't work on kernel C++ 14/17 #516

Closed davidxzfei closed 5 months ago

davidxzfei commented 5 months ago

include \<iostream>

std::cout << "hello" << std::endl;

The above code is only working in kernel C++ 11. I tried to switch to C++ 14 or C++ 17, it doesn't print anything. I also checked the process after I switch to C++17, the process is:

/home/ubuntu/anaconda3/envs/cling/bin/xcpp -f /home/ubuntu/.local/share/jupyter/runtime/kernel-7db62331-751f-42de-b11e-280ed8abcf0a.json -std=c++17

I tried to update xeus-cling and notebook with conda, but it still not working.

I am working on ubuntu 22.04, ARM64.

davidxzfei commented 5 months ago

I found the C++17 kernel cannot startup on that machine.