当编译器在调用atoi函数之前没有包含相应的头文件(在这个例子中是<stdlib.h>),就会出现“implicit declaration of function ‘atoi’”错误。这是因为编译器不知道atoi函数的存在,也没有它的参数和返回类型的信息。 4. 解决‘implicit declaration of function ‘atoi’’错误的建议 要解决这个问题,你需要确...
target thumb C: libexosip <= external/libexosip/src/eXregister_api.c external/libexosip/src/eXregister_api.c: In function '_eXosip_register_build_register': external/libexosip/src/eXregister_api.c:163: warning: implicit declaration of function 'atoi' target thumb C: libexosip <= ...
---警告如下:a2.c:6:5: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] gets(a); ^ /tmp/cceyMQ7u.o: In function `main': a2.c:(.text+0x41): warning: the `gets' function is dangerous and should not be used. ---原因:问题出在程序中使用了 gets...