Sign inSign up

gpavlidi/cling

By gpavlidi

Updated almost 10 years ago

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

Image
0

10K+

gpavlidi/cling repository overview

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"

Tag summary

Content type

Image

Digest

Size

216.2 MB

Last updated

almost 10 years ago

docker pull gpavlidi/cling