all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Access denied when compiling C++ from within emacs under cygwin
@ 2010-04-22  3:27 Amadeus W.M.
  2010-04-22 18:36 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Amadeus W.M. @ 2010-04-22  3:27 UTC (permalink / raw)
  To: help-gnu-emacs

I'm using windows emacs from within cygwin on my XP machine at work. I 
start a shell first, go to the directory where foobar.cpp resides, then

emacs foobar.cpp &

and finally, within emacs I do M-x compile
g++ foobar.cpp

The compilation fails with an "Access is denied" error message. Again, 
this is with windows emacs. The program does compile at the prompt in the 
shell, and it also compiles with cygwin's emacs-nox, so it's not a 
permission problem, nor a cygwin problem, it's windows emacs (possibly 
interacting somehow with cygwin).

Does anyone have any suggestions how to even start debugging this? I have 
emacs-23-1 and cygwin 1.7. I tried emacs --debug-init but no messages are 
being displayed. 

My machine has recently been upgraded and on my old one I was running the 
same emacs-23-1, with the same .emacs file under cygwin 1.5 or so and I 
had absolutely no problems.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Access denied when compiling C++ from within emacs under cygwin
  2010-04-22  3:27 Access denied when compiling C++ from within emacs under cygwin Amadeus W.M.
@ 2010-04-22 18:36 ` Eli Zaretskii
  2010-04-22 22:56   ` Amadeus W.M.
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2010-04-22 18:36 UTC (permalink / raw)
  To: help-gnu-emacs

> From: "Amadeus W.M." <amadeus84@verizon.net>
> Date: Thu, 22 Apr 2010 03:27:55 +0000 (UTC)
> 
> emacs foobar.cpp &
> 
> and finally, within emacs I do M-x compile
> g++ foobar.cpp
> 
> The compilation fails with an "Access is denied" error message.

First, what does "M-x emacs-version RET" display?

Second, does this happen only with g++ or with any other command
invoked through "M-x compile"?




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Access denied when compiling C++ from within emacs under cygwin
  2010-04-22 18:36 ` Eli Zaretskii
@ 2010-04-22 22:56   ` Amadeus W.M.
  0 siblings, 0 replies; 3+ messages in thread
From: Amadeus W.M. @ 2010-04-22 22:56 UTC (permalink / raw)
  To: help-gnu-emacs

On Thu, 22 Apr 2010 21:36:38 +0300, Eli Zaretskii wrote:

>> From: "Amadeus W.M." <amadeus84@verizon.net> Date: Thu, 22 Apr 2010
>> 03:27:55 +0000 (UTC)
>> 
>> emacs foobar.cpp &
>> 
>> and finally, within emacs I do M-x compile g++ foobar.cpp
>> 
>> The compilation fails with an "Access is denied" error message.
> 
> First, what does "M-x emacs-version RET" display?
> 
> Second, does this happen only with g++ or with any other command invoked
> through "M-x compile"?

I've fixed it. It wasn't just g++, it was the shell. I had to do what 
says here regarding replacing the dos shell with bash:

http://www.khngai.com/emacs/cygwin.php








^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-22 22:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-22  3:27 Access denied when compiling C++ from within emacs under cygwin Amadeus W.M.
2010-04-22 18:36 ` Eli Zaretskii
2010-04-22 22:56   ` Amadeus W.M.

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.