warning: implicit declaration of function

前端 未结 7 910
旧时难觅i
旧时难觅i 2020-11-22 02:19

My compiler (GCC) is giving me the warning:

warning: implicit declaration of function

Please help me understand why is it coming

7条回答
  •  暖寄归人
    2020-11-22 02:56

    I think the question is not 100% answered. I was searching for issue with missing typeof(), which is compile time directive.

    Following links will shine light on the situation:

    https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gcc/Typeof.html

    https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gcc/Alternate-Keywords.html#Alternate-Keywords

    as of conculsion try to use __typeof__() instead. Also gcc ... -Dtypeof=__typeof__ ... can help.

提交回复
热议问题