Skip to content

Instantly share code, notes, and snippets.

@robertov8
Last active July 10, 2016 05:13
Show Gist options
  • Save robertov8/63802013e2f58ba0fc2382a675d12a9e to your computer and use it in GitHub Desktop.
Save robertov8/63802013e2f58ba0fc2382a675d12a9e to your computer and use it in GitHub Desktop.
{
"cmd" : ["gnome-terminal -x bash -c \"rm -f ${file_base_name}; gcc $file_name -o ${file_base_name} -lm -Wall; ./${file_base_name};echo;echo; echo Press ENTER to continue; read line; exit; exec bash\""],
"selector" : "source.c",
"shell":true,
"working_dir" : "$file_path"
}
@robertov8
Copy link
Author

robertov8 commented Jul 10, 2016

  • Remove
    • -f ignore nonexistent
  • Compile
    • -o writes the build output to an output file
    • -Wall Warning Options
    • -lm link lib math
  • Execute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment