2012-05-20 mallocの警告の対処方法メモ C Cでプログラムを作っていた時に、mallocを使っていてこんな警告が出てた。 警告: 組み込み関数 ‘malloc’ の互換性がない暗黙的な宣言です これは #include "stdlib.h" がないから警告が出るみたい。なので、ソースコードに、上の#include "stdlib.h"を付け加えれば警告は消える。 参考サイト http://cboard.cprogramming.com/c-programming/110937-warning-implicit-declaration-function-%91malloc%92.html implicit declaration of malloc