implicit declaration of function usleep

前端 未结 6 1899
庸人自扰
庸人自扰 2020-12-14 07:21
gcc (GCC) 4.6.3
c89

I am trying to use usleep. However, I keep getting the following warning:

implicit declarat

6条回答
  •  无人及你
    2020-12-14 07:28

    This may work: Add -std=gnu99 when compiling with gcc on Linux.

    Example:

    arm-linux-gcc -lpthread -std=gnu99  -o test ArmLinuxDataPipe1.2.1.c
    

提交回复
热议问题