免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1194 | 回复: 2
打印 上一主题 下一主题

[文本处理] 求Makefile的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-08-14 00:08 |只看该作者 |倒序浏览
Makefile编译都通过了 但出现这样的错误    make: *** [run] 错误 6
Makefile 如下:  
obj := main.o atoi.o lower.o\
strcat.o getbits.o
all: clean build run
build: $(obj)
        @$(CC) -o main $^
%.o: %.c
        @echo $@
        @$(CC) -o $@ -c $<
run:
        ./main
clean:
        $(RM) *.o
realclean:
        $(RM) *.o main
PHONY: build test clean realclean
求解 谢谢!

论坛徽章:
15
2015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-15 17:29:44午马
日期:2015-01-06 17:06:51子鼠
日期:2014-11-24 10:11:13寅虎
日期:2014-08-18 07:10:55酉鸡
日期:2014-04-02 12:24:51双子座
日期:2014-04-02 12:19:44天秤座
日期:2014-03-17 11:43:36亥猪
日期:2014-03-13 08:13:51未羊
日期:2014-03-11 12:42:03白羊座
日期:2013-11-20 10:15:18CU大牛徽章
日期:2013-04-17 11:48:45
2 [报告]
发表于 2012-08-14 08:07 |只看该作者
也就是说,这个不是make的错误。

‘[foo] Error NN’
‘[foo] signal description’
    These errors are not really make errors at all. They mean that a program that make invoked as part of a recipe returned a non-0 error code (‘Error NN’), which make interprets as failure, or it exited in some other abnormal fashion (with a signal of some type). See Errors in Recipes.

    If no *** is attached to the message, then the subprocess failed but the rule in the makefile was prefixed with the - special character, so make ignored the error.

http://www.gnu.org/savannah-chec ... Error-Messages.html

论坛徽章:
0
3 [报告]
发表于 2012-08-14 08:58 |只看该作者
thanks....................
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP