我的中级 prg 课程落后了大约一周(由于 ram 问题),我只需要问一个非常非常简单的问题。
我用什么命令来运行?
我在 lubuntu 上使用 lxterminal。不确定它是否重要,但我使用 gvim 进行编码。我制作了文件goodhello.c
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf("Hello World!\n");
return EXIT_SUCCESS;
}
我编译使用gcc blah/goodhello.c
没有任何错误(它没有报告任何内容)。
我如何从这里运行它?
一个a.out
文件出现在父目录中(这有点奇怪),但是当我写a.out
它时说找不到命令。当我写 make a.out 时,它没有写任何事情要做。make goodhello.c
--> nothing to be done
。
请帮忙!