warning: implicit declaration of function 'kill'

前端 未结 2 1719
星月不相逢
星月不相逢 2021-02-13 12:32

I am making these inclusions:

#include 
#include 
#include 
#include 

But

2条回答
  •  梦谈多话
    2021-02-13 13:04

    You can also define it on the compile time by adding this flag with gcc.

    -D_POSIX_C_SOURCE
    

    ex:

    -g -D_POSIX_C_SOURCE -Wall -std=c99
    

提交回复
热议问题