warning: no newline at end of file
来源:互联网 发布:吉林大学网络教育平台 编辑:程序博客网 时间:2024/05/01 02:47
by:c1
gcc 编译c代码出现:
warning: no newline at end of file
警告
解决:源文件最后一行没有回车符造成的,在最后一行敲一个回车,然后保存重新编译。
原因:
"The C language standard says
A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character.
Since this is a "shall" clause, we must emit a diagnostic message for a violation of this rule.
This is in section 2.1.1.2 of the ANSI C 1989 standard. Section 5.1.1.2 of the ISO C 1999 standard (and probably also the ISO C 1990 standard)."
- 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
- 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: gcc warning warning: no newline at end of file
- gcc warning: no newline at end of file
- warning no newline at the end of file
- 如何解决warning: no newline at end of file?
- C-free提示warning: no newline at 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
- error:warning no newline at the end of file
- Sql Sever 2008 jar Maven pom.xml dependency
- 《锋利的jQuery》读书笔记 第1章 认识jQuery
- 2012年第三届西安电子科技大学网络攻防 大赛暨网络渗透部分通关方案 V2.0
- 为什么我们需要uCos
- 离线查询和子查询--DetachedCriteria
- warning: no newline at end of file
- 非常高兴,“万能数据库查询分析器”中英文3.01版本测试完成,会尽快完成发布,敬请等待
- 根据新浪IP库地址,跳到不同城市的二级页面
- Javah 常见错误记录-NDK与JNI除错
- 在德问上面看到的一道面试题:交换数字位置得到相对最大值
- 非常高兴,《彻底删除文件》2.01版本也测试完成,会尽快完成发布,敬请等待
- 算法导论 第六章 堆排序 习题6.5-8 k路合并排序
- HDU 3790 最短路径问题
- Python-Tkinter几何布局管理