Hi all,
I include <math.h> to use functions such as "floor()". and also I use -lm to link to math library like the following:
But still I receive an error which says: "undefined reference to 'floor'"
What would be the problem?
Thanks in advance,
I include <math.h> to use functions such as "floor()". and also I use -lm to link to math library like the following:
Code:
all: setitimer-helper squish-pty squish-unix
CC = gcc
CFLAGS = -Wall -W
LDFLAGS = -lm
setitimer-helper: setitimer-helper.o
squish-pty: squish-pty.o
squish-unix: squish-unix.o
clean:
rm -f *.o setitimer-helper squish-pty squish-unix
What would be the problem?
Thanks in advance,
Comment