I want to compile a simple C program with GCC. What do I need to put in the sublime-build file to do so?
LINUX! COMPILING AND RUNNING IN TERMINAL, LANGUAGE C
Create a new Build System and paste this code:
{
"cmd": ["xterm-256color -e 'zsh -c \"gcc $file_name -o ${file_base_name} && ./${file_base_name} ;echo;echo Presiona ENTER para salir...; read line\"'"],
"selector" : "source.c",
"shell": true
}
echo $SHELL = To know which shell you use (zsh)-------------------------------------------------------------echo $TERM = To know which terminal you use (xterm-256color)-------------------------------------------
:D