如何解决warning: no newline at end of file?
2011-05-26 09:31
411 查看
今天写了一段代码, 是在Windows下编辑的, 保存后放在linux系统下编译.
gcc和cc都产生以下的警告:
a.h:1:2: warning: no newline at end of file
后来发现解决这个问题产生的原因是源文件的最后一行没有回车符造成的; 解决的办法很简单, 在最后一行敲一个回车, 然后保存, 重新编译.
gcc和cc都产生以下的警告:
a.h:1:2: warning: no newline at end of file
后来发现解决这个问题产生的原因是源文件的最后一行没有回车符造成的; 解决的办法很简单, 在最后一行敲一个回车, 然后保存, 重新编译.
相关文章推荐
- 如何解决warning: no newline at end of file?
- 如何解决warning: no newline at end of file
- 如何解决warning: no newline at end of file?
- linux ubuntu 如何解决warning: no newline at end of file?
- 解决warning: no newline at end of file
- warning no newline at the end of file
- Linux环境下warning: no newline at end of file
- warning no newline at the end of file
- warning: no newline at the end of file
- warning no newline at the end of file
- warning: no newline at the end of file
- warning: no newline at end of file的原因
- 如何去掉git diff 时的 \ no newline at end of file
- error:warning no newline at the end of file
- warning: no newline at end of file
- warning no newline at the end of file
- warning no newline at the end of file
- warning: no newline at end of file
- Warning: no newline at end of file .(转)
- warning no newline at the end of file