diff options
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-x | home/xyz/.local/bin/ccgsl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/ccgsl b/home/xyz/.local/bin/ccgsl index d38ae5d2..6bf46e4b 100755 --- a/home/xyz/.local/bin/ccgsl +++ b/home/xyz/.local/bin/ccgsl @@ -2,4 +2,7 @@ # steal codes from https://github.com/LukeSmithxyz/voidrice/blob/master/.local/bin/compiler base="${1%.*}" -cc "$1" -o "$base" -lgsl -lgslcblas && ./"$base" +# -lm link math library? needed for sqrt(). not sure +# https://stackoverflow.com/questions/44175151/what-is-the-meaning-of-lm-in-gcc +cc "$1" -o "$base" -lgsl -lgslcblas -lm && ./"$base" +#cc "$1" -o "$base" -lgsl -lgslcblas && ./"$base" |