社区
Linux/Unix社区
帖子详情
Make时产生“commands commence before first target”错误!
skylight
2004-06-22 07:40:45
我make文件时报“commands commence before first target”错误,不知道为什么,请大侠们指教
...全文
194
1
打赏
收藏
Make时产生“commands commence before first target”错误!
我make文件时报“commands commence before first target”错误,不知道为什么,请大侠们指教
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
gettext
2004-06-23
打赏
举报
回复
makefile贴出来.
编译
错误
:
com
mand
s
com
mence
before first
target
make
file 编译失败,显示
com
mand
s
com
mence
before first
target
, 原因:
Make
file 文件中换行符"\"后面多了一个空格,或者 漏写 换行符“\” 特别容易疏忽的地方,要多多注意!!!!
com
mand
s
com
mence
before first
target
. Stop.
原创
com
mand
s
com
mence
before first
target
. Stop. ...
make
file出现报错
com
mand
s
com
mence
before first
target
. stop
报错:
com
mand
s
com
mence
before first
target
. stop。一般
make
file出现此
错误
,一定要检查是否有。,特别是末尾的的位置。
BUGS_10 gcc编译报错"
com
mand
s
com
mence
before first
target
. Stop"
编译smartconfig
时
出现:
make
[3]: Entering directory `xxx/
com
pile_dir/
target
/smartlinkd/src'
Make
file:11: ***
com
mand
s
com
mence
before first
target
. Stop.
make
[3]: Leaving directory `xxx/
com
pile_dir/
target
/...
Make
file
错误
:
com
mand
s
com
mence
before first
target
.
关于这个
错误
,网上的分析如下: 1)
Make
file可能是以命令行开始:以[Tab]字符开始,但不是一个合法的命令行(例如,一个变量的赋值)。命令行必须和规则一一对应。 2)
产生
第二种的
错误
的原因可能是一行的第一个非空字符为分号,
make
会认为此处遗漏了规则的“
target
: prerequisite”部分。 检查了一下,发现果然是命令的开头没有加[tab]字符。
Linux/Unix社区
23,216
社区成员
74,539
社区内容
发帖
与我相关
我的任务
Linux/Unix社区
Linux/Unix社区 应用程序开发区
复制链接
扫一扫
分享
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章