I get the right answer on a Mac with org-mode version 8.2.10
Anssi Saari writes: > Oz Ben-Ami <ozzi...@gmail.com> writes: > >> A minimal working example, attached, includes the following snippet: >> >> #+BEGIN_SRC C :includes '(<math.h> <stdio.h>) :flags -lm >> int i=9; >> printf("%d\n",(int)sqrt(i)); >> #+END_SRC > > I get the same problem, Ubuntu 14.04.3 LTS, GNU Emacs 24.3.1, Org-mode > version 8.2.10. So maybe it got fixed at some point since these versions > are about two years old? -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu