From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Re: Problems running C code in org-mode under Windows Date: Wed, 28 Mar 2012 00:14:03 -0700 Message-ID: <40C7B1BFC291ED4E9D10436D07736A334702EB99A6@EXMAIL7.haas.uc.berkeley.edu> References: <40C7B1BFC291ED4E9D10436D07736A334702B60A32@EXMAIL7.haas.uc.berkeley.edu> <87bonikeaw.fsf@gmx.com> <40C7B1BFC291ED4E9D10436D07736A334702B60B3A@EXMAIL7.haas.uc.berkeley.edu> <87r4wec9lg.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCn5B-0004qf-Rf for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 03:14:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCn55-0005P5-Jx for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 03:14:13 -0400 Received: from gateway-b.haas.berkeley.edu ([128.32.222.40]:40631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCn55-0005Os-EJ for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 03:14:07 -0400 In-Reply-To: <87r4wec9lg.fsf@gmx.com> Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: "emacs-orgmode@gnu.org" > > 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). > > > > If I execute this exact command at the command line, the compilation > > works fine, and creates an executable file C-bin-10700opx.exe (note > > that gcc on Windows automatically adds the .exe extension if you omit > > it). However, after running the call-process-region command in the .el > > file, no executable file is produced, and error-file has the contents > > > > Access is denied In case anyone is interested, this explains why the Access Denied errors oc= curred, and why switching to bash solved the problem: http://cboard.cprogramming.com/tech-board/125098-windows-7-access-denied-gc= c.html Another solution to the Access Denied problem is to put the following line = in init.el: (setq org-babel-C-compiler "gcc-4") Then you can keep using the Window shell instead of bash. However, this sti= ll only solves part of the problem. The output is still blank.