Discussion:
cannot open output file a.exe: Permission denied
Ethan Mallove
2002-03-12 22:44:05 UTC
Permalink
I was trying to compile a simple multi-file C++
program when i got this error message:

/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cannot open output file a.exe: Permission denied
collect2: ld returned 1 exit status

i moved all the files into a different directory and
abracadabra the error message didn't occur. What was
happening when i was getting the "permission denied"
error?

-ethan

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
Heribert Dahms
2002-03-12 22:57:43 UTC
Permalink
Hi Ethan,

is the program still running?
A running executable is locked from overwriting by e.g. the linker
under most unixes, and when not, I've seen spectacular crashes 8-)
-----Original Message-----
Sent: Tuesday, March 12, 2002 23:44
Subject: cannot open output file a.exe: Permission denied
I was trying to compile a simple multi-file C++
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld
cannot open output file a.exe: Permission denied
collect2: ld returned 1 exit status
i moved all the files into a different directory and
abracadabra the error message didn't occur. What was
happening when i was getting the "permission denied"
error?
-ethan
[Heribert] [snip]


--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
Larry Hall (RFK Partners, Inc)
2002-03-12 22:58:22 UTC
Permalink
Post by Ethan Mallove
I was trying to compile a simple multi-file C++
cannot open output file a.exe: Permission denied
collect2: ld returned 1 exit status
i moved all the files into a different directory and
abracadabra the error message didn't occur. What was
happening when i was getting the "permission denied"
error?
I'm going to guess a permissions problem. Review the email archives/user
documentation for more information on this subject.



Larry Hall ***@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
Christopher Faylor
2002-03-13 01:08:19 UTC
Permalink
Post by Larry Hall (RFK Partners, Inc)
I was trying to compile a simple multi-file C++ program when i got this
cannot open output file a.exe: Permission denied collect2: ld returned
1 exit status
i moved all the files into a different directory and abracadabra the
error message didn't occur. What was happening when i was getting the
"permission denied" error?
I'm going to guess a permissions problem. Review the email
archives/user documentation for more information on this subject.
I'm guessing that the user is using a Gould Powerstation as a nfs server
and the 220V power isn't really three phase.

I can't wait to see which of us is correct.

cgf

--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/

Loading...