May 11, 2011
gcc report : incompatible implicit declaration of built-in function ‘round’
I have a simple C program with use round function. This is my simple code (save as main.c) : #include <stdio.h> #include <stdlib.h> #include <math.h> int main(int argc, char **argv) { float a, b; int c, d; a = 5.6; b = 5.3; c = round(a); d = round(b); printf("a=%2.2f , round = %i \n",