Public | Automated Build

Last pushed: a year ago
Short Description
cling is a C++ repl. Imagine irb but for C++.
Full Description

cling

cling is a C++ repl. Imagine irb but for C++.

Usage

After docker pull gpavlidi/cling, these 2 aliases in a bash_profile might come in handy:

  • cling: C++ console with most frequent headers loaded

    alias cling='docker run -it --rm gpavlidi/cling -Wc++11-extensions -std=c++11 -liostream -lvector -lstring -lunordered_map -lqueue -lstack -lalgorithm'
    
  • clingx: C++ console same as cling but with x11 forwarding too! To get docker X11 forwarding working, check out this

    alias clingx="xhost + $(dinghy ip) && ip=$(ifconfig vboxnet0 | grep inet | awk '$1=="inet" {print $2}') docker run -it --rm -e DISPLAY=${ip}:0 -v /tmp/.X11-unix:/tmp/.X11-unix gpavlidi/cling -Wc++11-extensions -std=c++11 -liostream -lvector -lstring -lunordered_map -lqueue -lstack -lalgorithm"
    
Docker Pull Command
Owner
gpavlidi
Source Repository

Comments (0)