Mint 中的 Linux GCC 编译器输出:如何处理该文件?
我写了一个简单的c程序。以“c”后缀保存。进入终端(在 Linux Mint 中),输入
gcc -o outputfile inputfile.c
In the directory contains inputfile.ca 出现了名为 outputfile 的文件,正如我所料。我想运行该程序,但单击该文件没有任何反应。
我做错了什么?
I wrote a simple c program. saved it with "c" suffix. Went to the terminal (in Linux Mint), typed in
gcc -o outputfile inputfile.c
In the directory containing inputfile.c a file called outputfile appeared, as I expected. I want to run the program, but clicking on the file does nothing.
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该程序正在运行,但您看不到其输出,因为终端未打开。打开终端并使用 ./outputfile 运行它
如果您的程序打开了一个窗口,您可以通过单击该文件来看到它。
The program is running, but you're not seeing its output because the terminal isn't open. Open up your terminal and run it with ./outputfile
If your program opened a window, you would see it by clicking on the file.