Running a C program on Mac OS X
created with GCC 5.2.0
g++ exio.cc -o exio-cc

Download exio-cc

Open the terminal app in Applications/Utilities

Run it 
Go to where you saved it (e.g. Downoloads) in the finder with cd (change directory)
  cd Downloads
Make it executable "chmod 777 exio-cc"
Run it
  ./exio-cc


Links:

last updated 4 Mar 2016