我有一个非常简单的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)
我错过了什么明显的事情?