www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000254

When Created: 10/18/1998 11:00:07
Against DJGPP version: 2.01
By whom: twig10@geocities.com
Abstract: Permission Denied (EACCES)
Here is the error:

C:\> gcc test.c -o test.exe
     rename of test.000 to test.exe failed
     The error was: Permission Denied (EACCES)

What is going on?

the source to test.c:

#include "stdio.h"

void main()

This happens with any program I try to compile and/or link, especially Allegro.
What is wrong?
(By the way, I hope i've given you enough information)

Note added: 12/08/1998 16:00:13
By whom: gillius@webzone.net
I get this error a lot, and usually when working with Allegro under windows.  It
also only happens after I crash the program.  I don't think anything of it 
because when I crash my program (espically when due to pointer errors), I
expect the system to become unstable.  I either close the MS-DOS box and reopen
it, or I ignore it.  Although it says that there is an error, I have found that
the program still compiles correctly w/o flaw, so you CAN ignore it, but keep 
in mind that the system is unstable.
These are my best guesses towards this error . . .

Note added: 04/30/1999 06:00:47
By whom: broeker@physik.rwth-aachen.de
I don't know much about Allegro, but there's another reason that
has led to this message, before: a virus scanner going berserk.
Some antivirus programs try to protect against infection by not
allowing write access to executable files in what they think are
'suspicious' ways. So they disallow DJGPP's stubify to rename 
the generated file from a non-executable to an executable extension.

I tried to ask the original poster whether this may have been his problem,
but got no reply.

Note added: 05/04/1999 04:00:55
By whom: eliz@is.elta.co.il
Both of the notes seem to indicate that this is not a bug in DJGPP.

If this kind of problem happens after a crash, it probably means the
crash left the .exe file open by the system, and therefore Windows
disallows write access to it.  If it's a virus scanner, it simply
won't let programs write to a .exe file.

So I'm closing this until such time as somebody comes with a reproducible

Closed on 05/04/1999 04:00:10: A problem with the OS/virus scanner; not a DJGPP bug.
By whom: eliz@is.elta.co.il

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010