关闭

warning: its scope is only this definition or declaration, which is not what you want

546人阅读 评论(0) 收藏 举报
分类:

warning: its scope is only this definition or declaration, which is not what you want

C语言编译出错,

出错处理是:

将声明对应的文件放在前部,以保证该声明在使用前已经被找到。


参考

http://cboard.cprogramming.com/c-programming/166621-warning-its-scope-only-definition-declaration-not-what-you-want.html

文中说道

You need to declare the struct before you can use it anywhere, it should be ok if you move the function declaration after the struct.

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:230116次
    • 积分:8199
    • 等级:
    • 排名:第2451名
    • 原创:611篇
    • 转载:52篇
    • 译文:4篇
    • 评论:40条
    文章分类
    最新评论