diff --git a/.local/bin/compiler b/.local/bin/compiler index faf37c9e..ecab4fbe 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -29,7 +29,7 @@ textype() { \ case "$ext" in # Try to keep these cases in alphabetical order. [0-9]) preconv "$file" | refer -PS -e | groff -mandoc -T pdf > "$base".pdf ;; - c) cc "$file" -o "$base" && "$base" ;; + c) cc "$file" -o "$base" -lm && "$base" ;; cpp) g++ "$file" -o "$base" && "$base" ;; cs) mcs "$file" && mono "$base".exe ;; go) go run "$file" ;;