Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

17
  • Are the source code block lines above the only text in the org file? Note that you can explicitly enable and disable a programming language in org-babel-load-languages. Double-check that Activated is really on for C! Is the value of org-babel-C-compiler meaningful on your system? Commented Oct 6, 2017 at 20:08
  • @Tobias Yes, the Org file only contains the hello world code block. (eval org-babel-C-compiler) gives gcc. I'm not sure what Activated is? (eval org-babel-load-languages) gives Invalid function: (C . t). Commented Oct 6, 2017 at 20:38
  • 1
    See that orgmode-ticket: github.com/syl20bnr/spacemacs/issues/7641. There they say that removing all the compiled files *.elc and byte-compiling the sources does the trick. Commented Oct 9, 2017 at 12:59
  • 1
    Possible duplicate of: emacs.stackexchange.com/questions/28441/… Commented Oct 9, 2017 at 13:01
  • 1
    The fix was to do rm ~/.emacs/elpa/org-20171009/*.elc and then restart Emacs. The overall issues seems to be an inconsistency between Org mode versions. Very annoying that updating/installing Org does not automatically rebuild the *.elc files :( Commented Oct 10, 2017 at 2:00