今天由于头文件的一通包含操作,导致了一个比较头疼的问题。

找了好长时间,最后删了几个头文件,才编译通过。

当 A 包含 B 的头文件,B 又包含 A 的头文件,就出现了这个神奇的 error。

错误提示:error: expected declaration specifiers or '...' before XXX

解决方法:检查并删掉其中重复包含的头文件。


—— 2018-08-05 ——

【错误笔记】error: expected declaration specifiers or '...' before XXX相关推荐

  1. error: expected declaration specifiers or ‘...’ before numeric constant

    今天遇到了这个错误,很奇怪,最终解决了. 可以产生这个错误的示例代码如下: #include <stdio.h>#define VALUE 1int func(int a) {printf ...

  2. gcc:编译 expected declaration specifiers or ‘...’ before

    这种错误,一般是头文件include混乱造成的. 实例: In file included from ftpp.h:6:0,                     from ftpp.c:2: pa ...

  3. 005 [Error] expected declaration or statement at end of input

    错误描述如下: F:\000 待处理\004 openjudge刷题\code\成绩排序.c In function 'stu_sort': 63 1 F:\000 待处理\004 openjudge ...

  4. error: expected declaration or statement at end of input

    报警提示: error: expected declaration or statement at end of input 中文翻译:在输入的结尾处缺少应有的声明或语句 问题原因:缺少括号. 问题代 ...

  5. error: expected declaration or statement at end of input----solved

    error: expected declaration or statement at end of input 解决方法: 1.程序缺少一个括号相应地 2.而不添加头文件 版权声明:本文博主原创文章 ...

  6. error: expected declaration or statement at end of input 解决方法

    解决方法 error: expected declaration or statement at end of input ,,,少了右边一个大括号}

  7. c/c++: error: expected declaration or statement at end of input

    文章目录 expected declaration or statement at end of input 和这个有点类似的警告: expected declaration or statement ...

  8. 笔记error: expected constructor, destructor, or type conversion before ‘.‘ token

    error: expected constructor, destructor, or type conversion before '.' token 找了半天原因,原来是犯了基础知识不扎实的错误, ...

  9. c语言 [Error] expected declaration or statement at end of input的解决方法

    通常情况下出现expected declaration or statement at end of input的情况,一般是因为再程序的最后少了花括号"}",再仔细检查一下代码的 ...

最新文章

  1. SQL Server 默认跟踪(Default Trace)
  2. idea设置新增文件,自动添加到git
  3. javascript正则表达式验证密码(必须含数字字符特殊符号,长度4-16位之间)
  4. 重定向和转发之间的区别
  5. 【selenium 小练手 抓取某大厂TP】
  6. asp mysql text_11种ASP连接数据库的方法
  7. Linux下挂载和格式化虚拟磁盘图文教程
  8. Adobe Flex大师之路
  9. 计算机教师中级职称个人总结,职称个人总结
  10. 程序员述职报告范文_程序员个人述职报告范文精选3篇
  11. html中ul怎么写,HTML: ul 标签
  12. 加载大尺寸图片不清晰,加载原图(ImageLoader,Glide)
  13. 美还是丑?这有一个CNN开发的颜值评分器 | 实战
  14. 《认文识字•简述》【小结】
  15. 语音数字信号处理系统设计(含matlab程序)
  16. 人像抠图软件哪个好?这些软件助你实现人像抠图
  17. 做人要厚道,不要太冲
  18. 页面自动更新(javascript)
  19. 基于深度学习的遥感影像语义分割数据预处理
  20. docker--volumes,bind mounts和tmpfs mount

热门文章

  1. 2020 给自己定个小目标
  2. WinRAR命令行参数整理111
  3. 中国电子学会2021年12月份青少年软件编程Scratch图形化等级考试试卷二级真题(含答案)
  4. Photoshop磨皮教程:PS给新疆MM磨皮美白
  5. [小白系列][可视化基础]数据可视化视图从入门到不放弃,数据可视化视图都有哪些,怎么选用,我们一起来康康
  6. 2021 年 QS 世界大学排名公布:MIT 连续九年位列第一,清华再次刷新中国高校排名记录...
  7. 200 行代码实现一个简单的区块链应用1
  8. CSS入门基础(样式,css文件,选择器)
  9. web前端CSS入门知识点总结
  10. 工具使用 - idea - 导入新项目环境配置