Using C and makefile code with org-babel
Table of Contents
Introduction
Org babel does not support compilation of C code. However the following configuration code allows C (and GNU Make) code to be tangled. It also allows upper-case "C" to be used as a synonym for "c" in org-src-mode, so that C-c ' on a "begin_src C" block will work.
(add-to-list 'org-src-lang-modes '("C" . c)) (org-babel-add-interpreter "C") (add-to-list 'org-babel-tangle-langs '("C" "c")) (org-babel-add-interpreter "makefile") (add-to-list 'org-babel-tangle-langs '("makefile"))