相关疑难解决方法(0)

Makefile:Error1

我有一个非常简单的c程序:

int main()
{
  return(1);
}
Run Code Online (Sandbox Code Playgroud)

和一个简单的Makefile:

all:
    gcc -ansi -pedantic -o tmp tmp.c
    ./tmp
Run Code Online (Sandbox Code Playgroud)

但是,当我键入时,make我收到以下错误消息:

$ make
gcc -ansi -pedantic -o tmp tmp.c
./tmp
make: *** [all] Error 1
Run Code Online (Sandbox Code Playgroud)

我错过了什么明显的事情?

c makefile

9
推荐指数
3
解决办法
4万
查看次数

标签 统计

c ×1

makefile ×1