GCC编译出错:
error:expected declaration or statement at end of input
在VIM中用ggVG= 对代码进行缩进,发现有一个函数的缩进不对,顺个这个函数往上找到一处缺少一个"}"。
本文介绍了一种常见的GCC编译错误:expected declaration or statement at end of input。通过使用VIM编辑器的ggVG=功能检查代码缩进,定位到了缺少的大括号}
GCC编译出错:
error:expected declaration or statement at end of input
在VIM中用ggVG= 对代码进行缩进,发现有一个函数的缩进不对,顺个这个函数往上找到一处缺少一个"}"。
1万+

被折叠的 条评论
为什么被折叠?