diff options
author | xyz <gky44px1999@gmail.com> | 2021-11-19 17:49:56 -0800 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-11-19 17:49:56 -0800 |
commit | e41ae8e34c8e218763882812eabd284c210d5ad5 (patch) | |
tree | 6ff134f085def5cc5c1fd25adc3914eec8df4ca2 /home/xyz | |
parent | 3f9a413df17d73f31006037328c141f4f6eab6e5 (diff) |
ccgsl, link math lib
Diffstat (limited to 'home/xyz')
-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" |