Libraries should come after all the objects in the compiling option. Change it to:
lexanc: lexandr.o lexanc.o scanner.o printtoken.o token.h lexan.h Number.o
cc -o lexanc lexandr.o lexanc.o scanner.o printtoken.o Number.o -lm
Note -lm
has been moved to the end.