From b537d8e0263583825834edf9fbea74b6ff4025c4 Mon Sep 17 00:00:00 2001 From: Micfan Date: Thu, 28 Mar 2019 04:27:05 +0800 Subject: [PATCH] fix gcc link error of math library --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 552d340..27781e8 100644 --- a/makefile +++ b/makefile @@ -8,7 +8,7 @@ test: $(TARGETS) $(OUTPUTS) diagram: $(DIAGRAMS) %: %.c - gcc -Wall -O3 -o $@ $< + gcc -lm -Wall -O3 -o $@ $< %.png: % time ./$<