diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-02-11 00:18:14 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-02-11 00:18:14 -0800 |
commit | e913335106a8f86589e793e1bf604ecb83b64e9e (patch) | |
tree | 42f0a734952bd52a6d237d565161d695a0bd8e39 /ccgp | |
parent | 1d1f32c9e367cc7584561039fec84304b1563b8d (diff) |
update
Diffstat (limited to 'ccgp')
-rwxr-xr-x | ccgp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,7 @@ +#!/bin/sh +# steal codes from https://github.com/LukeSmithxyz/voidrice/blob/master/.local/bin/compiler + +base="${1%.*}" +# -lm link math library? needed for sqrt(). not sure +# https://stackoverflow.com/questions/44175151/what-is-the-meaning-of-lm-in-gcc +cc -Wall -lgsl -lgslcblas -lm -lplplot -o "$base" "$1" && ./"$base" |