EDN首页   博客首页

日志档案

发表于 2006-11-22 23:36:02

11

标签: Warning  

Warning:nonewlineatendoffile

在自己的应用程序编译的时候,经常会出现这样一个警告Warning: no newline at end of file

这是什么原因呢?在网上看到解释是

EDK 7.1 includes the GCC 3.4.3 compiler, which is stricter while compiling C code as compared to the previous version of GCC. Hence all files ending without a new line character will show this warning. This warning is harmless and users can choose to ignore this warning.

DNU编译器也是这样。

解决方法:在最后结束的地方来个回车。回去试试!

现在编程的要求高了,规定多少行的程序不能超过几个警告:(所以每个地方都要搞清楚阿!

系统分类: 嵌入式   |   用户分类: vxowrks编译规则   |   来源: 无分类   |   【推荐给朋友】   |   【添加到收藏夹】

    阅读(1952)    回复(1)  

投一票您将和博主都有获奖机会!

  • yang_tch

    2006-11-28 15:27:16

    就是在文件尾打个回车就可以。

    一般是由#endif 这样的语句结束才导致的吧!