From e2174de5ae42f9bf6a5473030e0012588d7e5033 Mon Sep 17 00:00:00 2001 From: Maximus Magnus <26562311+MagnusCaesar@users.noreply.github.com> Date: Wed, 10 Nov 2021 15:45:46 +0530 Subject: [PATCH] -lm flag to cc to compile math.h headers --- .local/bin/compiler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ;;