首页 > 其他 > 详细

错误makefile, line 30 make Dependency line needs colon or double colon operator的解决方法

时间:2016-01-26 18:05:58      阅读:940      评论:0      收藏:0      [点我收藏+]

错误makefile, line 30 make Dependency line needs colon or double colon operator的解决方法

 

使用makefile编译文件时,执行make命令报如下错误。

"makefile", line 30: make: Dependency line needs colon or double colon operator.

"makefile", line 32: make: Dependency line needs colon or double colon operator.

"makefile", line 51: make: Dependency line needs colon or double colon operator.

"makefile", line 55: make: Dependency line needs colon or double colon operator.

"makefile", line 82: make: Dependency line needs colon or double colon operator.

make: Fatal errors encountered -- cannot continue.

                       

错误原因:在linux下的make默认是GNU make,但是在unix下make工具默认被其他make占用,如果要想调用

GNU make只能用gmake.用其他make来解析GNU make语法的makefile文件,很可能会报错。这个时候只需要

使用gmake就可以解决问题了。

解决方法:unix下应该使用gmake

PS:不当之处,敬请批评指正。

错误makefile, line 30 make Dependency line needs colon or double colon operator的解决方法

原文:http://www.cnblogs.com/wanzaiqidao/p/5160889.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!