简体   繁体   中英

How do I run my .c program from terminal in one line?

I use the Min-GW GCC compiler on Windows 10 . Every time I compile, I need to make a .exe and then run it. Could there be any way to do the whole thing in one step?

You can combine commands in windows like you do on linux or macos!

gcc compilefile && c:/executefile.exe

(you need to replace that stuff with min-gw and your exe path)

links:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM