I'm wondering if there is a way (e.g. a software like bloodshed dev c++ in Windows) to compile a file.c and to create the executable file by using a single click.
I know only the classic way: writing code in gedit and save it as file.c, writing the code "gcc file.c -o file" in the terminal, and finally writing " \ .file" in the terminal.
Thank you in advance.
makeallow you to compile and link a single C or C++ source filefile.corfile.cppstraight to an executable just by typingmake file. The./filestep (which is what I assume you mean by " \ .file") then runs the program - it's is nothing to do with making it executable. – steeldriver Dec 28 '19 at 18:28make filelooks for a source file calledfile.cand runsgccfor you to produce the executablefile– steeldriver Dec 28 '19 at 18:33