LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 580|回复: 1

一个比较大的程序执行make错误,求助,thanks

[复制链接]
发表于 2004-2-17 20:09:19 | 显示全部楼层 |阅读模式
我看不懂错误提示,也不知道去哪里查
In file included from /home/zhu/test/src/order/order.h:6,
                 from /home/zhu/test/src/order/order.c:1:
/home/zhu/test/src/basic/identifier.h:18:7: warning: no newline at end of file

此程序如下:
#ifndef _IDENTIFIER_
#define _IDENTIFIER_
                                                                                
class Identifier {
public:
        Identifier() { id=noName=0; };
        const char *name() { return nameList[id]; };
        void set(char *name);
        void set(int id);
        void set(const Identifier& ID);
        int id;
protected:
        char **nameList;
        int noName;
};
                                                                                
#endif//好像是这里出错,但是为何有些文件不报错呢?
发表于 2004-2-17 20:24:28 | 显示全部楼层
这只是一个警告,程序是完成编译的。如果要让它消失,只要在源程序的最后一行;加一个新行就行了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表