i have been trying to compile a file that looks like this:
double un2 = ceil(3.23923);
all day long. i was compiling using cc file.c, but i kept getting an error that said "
undefined first referenced symbol in file ceil file.c. ld: fatal: symbol referencing errors. no output written to a.out
but once i tried doing: cc file.c -lm, it works fine. why? What is the secret? And, is there something important that i am missing? (i am a newbie to c)