开发者

Linux GCC Compiler Output in Mint: What to do with the file?

开发者 https://www.devze.com 2023-03-04 23:42 出处:网络
I wrote a simple c program. saved it with \"c\" suffix. Went to the terminal (in Linux Mint), typed in

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 a开发者_C百科m 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

If your program opened a window, you would see it by clicking on the file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号