简体   繁体   English

薄荷中的Linux GCC编译器输出:如何处理文件?

[英]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.

相关问题 Linux新手问题:GCC编译器输出 - Linux Novice Question: GCC Compiler output GTK + -3.0-dev编译时没有这样的文件或目录(Linux Mint / gcc) - GTK+-3.0-dev No Such File Or Directory on compile (Linux Mint/gcc) Linux上的这个GCC错误是什么,我该如何解决? gcc:内部编译器错误:非法指令(程序为) - What is this GCC error on Linux, and how do I solve it? gcc: internal compiler error: Illegal instruction (program as) c 语言 gcc 编译器 *.i 文件 #3 "" 2 这是什么? - c language gcc compiler *.i file #3 "" 2 what is this? 保存 gcc 的文件在哪里,并在 Linux Mint 上进行配置,包含标题的路径? - Where is located a file keeping gcc, and make configuration on Linux Mint, path to include headers? linux-如何将所有编译器的输出捕获到文件中以及需要显示输出 - linux - How do I capture all of my compiler's output to a file as well as need to display output arm-linux-gcc编译器链接,无法找到文件 - arm-linux-gcc compiler linking, file could not be found 致命错误:linux / compiler-gcc6.h:没有这样的文件或目录#include gcc_header(__ GNUC__)^ - fatal error: linux/compiler-gcc6.h: No such file or directory #include gcc_header(__GNUC__) ^ 如何使用C(linux)中的管道将GCC的输出保存在文件中? - how to save the output of GCC in a file using pipes in C (linux)? gcc编译器中的outp()对应项是什么? - What is the outp() counterpart in gcc compiler?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM