【发布时间】:2013-06-07 17:03:54
【问题描述】:
我有一个简单的 c 程序 - hello_world.c
从文件名可以看出我对 c 非常陌生。
我希望执行以下编译:
make hello_world.c
但这会给出错误消息:make: Nothing to be done for hello_world.c.
如果我只是做make hello_world 它可以工作,即没有扩展名。
谁能解释这是为什么?
【问题讨论】:
标签: c compilation makefile