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.
make
allow you to compile and link a single C or C++ source filefile.c
orfile.cpp
straight to an executable just by typingmake file
. The./file
step (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 file
looks for a source file calledfile.c
and runsgcc
for you to produce the executablefile
– steeldriver Dec 28 '19 at 18:33