解决报错:error: function declaration isn’t a prototype [-Werror=strict-prototypes]
发布日期:2022-03-18 18:19:24 浏览次数:9 分类:技术文章

本文共 169 字,大约阅读时间需要 1 分钟。

下午在写C语言代码,编译时报错如下:

error: function declaration isn’t a prototype [-Werror=strict-prototypes] void my_send2(){
^

这个错误的主要问题是没有说明参数是void

改为void my_send2(void)就可以了。

转载地址:https://zhang0peter.blog.csdn.net/article/details/88041972 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:解决报错:Can't read private key和./build-aux/cksum-schema-check: Permission denied
下一篇:解决gcc报错:error: implicit declaration of function ‘inet_addr’ [-Werror=implicit-function-declaration]

发表评论

最新留言

路过,博主的博客真漂亮。。
[***.116.15.85]2024年04月06日 14时05分39秒