#!/bin/bash # cp lagrange_interp_2d.hpp /$HOME/include # g++ -c -g -I /$HOME/include lagrange_interp_2d.cpp >& compiler.txt if [ $? -ne 0 ]; then echo "Errors compiling lagrange_interp_2d.cpp" exit fi rm compiler.txt # mv lagrange_interp_2d.o ~/libcpp/$ARCH/lagrange_interp_2d.o # echo "Library installed as ~/libcpp/$ARCH/lagrange_interp_2d.o"