Attached is Oz's patch adding optional :libs support to Babel C++ Thanks Oz. Thierry Le 11/03/2016 20:14, Oz Ben-Ami a écrit : > Thanks for the response. > > On my machine, I get the undefined references even with GCC 5 (gcc > version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)), if I put -lm before > the source file name. > > As far as a patch, I can try but this would be my first time really > playing with org-mode code. As far as I can see, I would need to add > the following lines in ob-C.el: > L133: (libs (cdr (assoc :libs params))) > (libs (mapconcat 'identity > (if (listp libs) libs (list libs)) " ")) > L142: (format "%s -o %s %s %s %s" ;; (added %s) > L147: libs > > Am I missing anything? > > Oz >