[英]Linux GCC Compiler Output in Mint: What to do with the file?
I wrote a simple c program. 我写了一个简单的c程序。 saved it with "c" suffix. 用“c”后缀保存。 Went to the terminal (in Linux Mint), typed in 输入终端(在Linux Mint中)
gcc -o outputfile inputfile.c
In the directory containing inputfile.ca file called outputfile appeared, as I expected. 在包含inputfile.ca文件的目录中出现了一个名为outputfile的文件,正如我所料。 I want to run the program, but clicking on the file does nothing. 我想运行该程序,但点击该文件什么都不做。
What am I doing wrong? 我究竟做错了什么?
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 打开终端并使用./outputfile运行它
If your program opened a window, you would see it by clicking on the file. 如果您的程序打开了一个窗口,您可以通过单击该文件来查看它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.