delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/17/14:46:05

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <3FB7E687.3917000A@phekda.freeserve.co.uk>
Date: Sun, 16 Nov 2003 21:05:11 +0000
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can't delete executables made by DJGPP
References: <a8587dd9 DOT 0311161132 DOT 2fbb6c5e AT posting DOT google DOT com>
Lines: 36
NNTP-Posting-Host: 81.6.219.79
X-Trace: 1069097412 mercury.nildram.net 103 81.6.219.79
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.

Chris Mantoulidis wrote:
> 
> When i make an executable file with DJGPP 2.03 (gcc 3.3.2 version i
> think) i can't delete it...
> 
> i use this command to make the executables (c++):
> 
> gxx foo.cc -o foo.exe
> 
> and i get a warning that the file does not have a new line character
> (or something), doesn't say which file.

It does. Look closer. It will look something like the warning below.

bash-2.04$ echo -n "int main (void) { return 1; }" > t.c
bash-2.04$ gcc -Wall -o t t.c
t.c:1:30: warning: no newline at end of file

> then when i try to delete the file (the exe) i get "file is being used
> by another person or program" error box so i can't delete it, but i
> can execute it
> 
> any help???

Try exiting the DOS session and then try again. If that does work, exit all
DOS sessions and try again. If that doesn't work, reboot Windows and try
again.

Regards,

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

"You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019