Hi Wayne,
Wayne Rossberg wrote:
> #include <math.h>
[...]
> test.c:5: warning: incompatible implicit declaration of built-in function
> `round'
When I check with "man 3 round", I see:
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
round(), roundf(), roundl():
_XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L;
or cc -std=c99
Are you compiling with -std=c99? If not, I'd suggest putting
"#define _GNU_SOURCE" at the top of the program and seeing if that
helps. See feature_test_macros(7) for details.
(That said, the warning does seem weird. I'm not sure what would
cause it.)
Hope that helps,
Jonathan
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/20110223051547.GA30001@elie