#!/bin/bash # g++ -c -g circle_arc_grid_prb.cpp >& compiler.txt if [ $? -ne 0 ]; then echo "Errors compiling circle_arc_grid_prb.cpp" exit fi rm compiler.txt # g++ circle_arc_grid_prb.o /$HOME/libcpp/$ARCH/circle_arc_grid.o -lm if [ $? -ne 0 ]; then echo "Errors linking and loading circle_arc_grid_prb.o." exit fi # rm circle_arc_grid_prb.o # mv a.out circle_arc_grid_prb ./circle_arc_grid_prb > circle_arc_grid_prb_output.txt if [ $? -ne 0 ]; then echo "Errors running circle_arc_grid_prb." exit fi rm circle_arc_grid_prb # echo "Program output written to circle_arc_grid_prb_output.txt"