Programming/C
gcc 컴파일 에러
RInovation
2011. 5. 4. 15:31
libpcap 프로그램 작성 후 gcc컴파일 하니
warning: incompatible implicit declaration of built-in function 'exit'
에러가 난다.
구글링 했더니
#include <stdlib.h> is by far the best solution.
If you really must disable the warning without fixing your code
try -fno-builtin-exit.
결국
#include <stdlib.h>
... 이런 어처구니...
warning: incompatible implicit declaration of built-in function 'exit'
에러가 난다.
구글링 했더니
#include <stdlib.h> is by far the best solution.
If you really must disable the warning without fixing your code
try -fno-builtin-exit.
결국
#include <stdlib.h>
... 이런 어처구니...
반응형