So I have searched around for a bit on the answer to this question, which is probably incredibly simple, but I haven't found anything yet, so here's the issue: Something like this code here works just fine:
int main(void){
double x;
x=ceil(5.5);
}
But if I try this:
int main(void){
double x = 5.5;
x=ceil(x);
}
I get this error message:
test.c:(.text+0x24): undefined reference to `ceil'
Why is this and how can I send a variable to function 'ceil()' and then store it in another variable?