gcc
例えばこんな感じでfloor()を使うCのプログラムtest.cがあったとして、 /* test.c */ #include <stdio.h> #include <math.h> int main() { printf("%d\n", (int)floor(1.5)); return 0; } そのままgccでコンパイルしようとするとエラーになる場合がある。 $ gcc test.c /tmp/c</math.h></stdio.h>…
例えばこんな感じでfloor()を使うCのプログラムtest.cがあったとして、 /* test.c */ #include <stdio.h> #include <math.h> int main() { printf("%d\n", (int)floor(1.5)); return 0; } そのままgccでコンパイルしようとするとエラーになる場合がある。 $ gcc test.c /tmp/c</math.h></stdio.h>…