Re: [O] Problems running C code in org-mode under Windows - SOLVED

2012-03-29 Thread Nick Dokos
Richard Stanton wrote: > > To allow for people who might be using the Cygwin bash shell in Emacs > > under Windows (which is recommended by many), I do recommend making > > the change I suggested above, adding the following lines to ob-C.el: > > > > > (tmp-bin-file (org-babel-temp-file

Re: [O] Problems running C code in org-mode under Windows - SOLVED

2012-03-29 Thread Richard Stanton
> To allow for people who might be using the Cygwin bash shell in Emacs > under Windows (which is recommended by many), I do recommend making > the change I suggested above, adding the following lines to ob-C.el: > > > (tmp-bin-file (org-babel-temp-file > > "C-bin-" >

Re: [O] Problems running C code in org-mode under Windows - SOLVED

2012-03-29 Thread Richard Stanton
> One problem - when using bash as the shell, when trying to execute the > compiled file, it tries to execute the empty file, not the file that was just > compiled (which has the same name, but the extension .exe, added by the > compiler). > > A partial solution to this is to append ".exe" to the

Re: [O] Problems running C code in org-mode under Windows

2012-03-28 Thread Richard Stanton
> > As far as I can see, at this point the command being called is > > > > C:/emacs/emacs-24.0.94/bin/cmdproxy -c "gcc -o \"c:/users/stanton[...]C- > bin-10700opx\" \"c:/users/Stanton[...]C-src-10700bfr.c\"" > > > > (where [...] just means I deleted some more path information, but it's all > valid)

Re: [O] Problems running C code in org-mode under Windows

2012-03-27 Thread Richard Stanton
> I think the "Access is denied" problem is probably the same as that listed > here: > > http://lists.gnu.org/archive/html/help-gnu-emacs/2010-04/msg00247.html > > Unfortunately, when I switch to using bash as my shell under Windows, this > causes problems with python-mode (though this is not rea

Re: [O] Problems running C code in org-mode under Windows

2012-03-27 Thread Richard Stanton
.schu...@gmx.com] > Sent: Tuesday, March 27, 2012 9:06 AM > To: Richard Stanton > Cc: emacs-orgmode@gnu.org > Subject: Re: [O] Problems running C code in org-mode under Windows > > Thanks for tracking down the source of this problem. Unfortunately this is > beyond my abilities to

Re: [O] Problems running C code in org-mode under Windows

2012-03-27 Thread Eric Schulte
; > > > > >> -Original Message- >> From: Eric Schulte [mailto:eric.schu...@gmx.com] >> Sent: Monday, March 26, 2012 6:45 PM >> To: Richard Stanton >> Cc: emacs-orgmode@gnu.org >> Subject: Re: [O] Problems

Re: [O] Problems running C code in org-mode under Windows

2012-03-27 Thread Richard Stanton
s is denied Not sure why this should be, but the compilation is not happening. > -Original Message- > From: Eric Schulte [mailto:eric.schu...@gmx.com] > Sent: Monday, March 26, 2012 6:45 PM > To: Richard Stanton > Cc: emacs-orgmode@gnu.org > Subject: Re: [O] Prob

Re: [O] Problems running C code in org-mode under Windows

2012-03-26 Thread Eric Schulte
Richard Stanton writes: > Here's a simple org file that's supposed to run some C code and print the > result: > > -- > > * Sample C code > > #+name: RHS.c > #+begin_src C :noweb yes :tangle RHS.c > #include > <> > #+end_src > > #+name: main > #+begin_src C > int main(i