Skip to content

Instantly share code, notes, and snippets.

@LemonPi
Last active February 23, 2017 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LemonPi/b0a7171ac10b86db4eac7f4fcdc90f59 to your computer and use it in GitHub Desktop.
Save LemonPi/b0a7171ac10b86db4eac7f4fcdc90f59 to your computer and use it in GitHub Desktop.
Quick c++11 compile script for bash; put in user path (e.g. /usr/bin/)
filename=$(basename "$1")
outfile="${filename%.*}"
{ g++ -o $outfile $@ -std=c++11 2>&1; } | tee log.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment