Hi All,
I am trying to use round() function but gcc couldn't find it...
Can you please help me??
Compiler: gcc 4.1.2
Command: gcc round_func.c
Error Message:Code:round_func.c #include <stdio.h> #include <math.h> int main(void) { double a = 13.05; printf("round of %.1lf is %.1lf\n", a, round(a)); return 0; }
round_func.c:7: warning: incompatible implicit declaration of built-in function ‘round’
/tmp/cckuuW3l.o: In function `main':
round_func.c.text+0x24): undefined reference to `round'
Thanks and Regrads,
Dharak