Date: Wed, 6 Oct 1999 14:36:25 +0200 From: Hans-Bernhard Broeker Message-Id: <199910061236.OAA02726@acp3bf.physik.rwth-aachen.de> To: djgpp AT delorie DOT com Subject: Re: Need DJGPP gurus' to help me, compiling problem! Newsgroups: comp.os.msdos.djgpp Organization: RWTH Aachen, III. physikalisches Institut B X-Newsreader: TIN [version 1.2 PL2] Reply-To: djgpp AT delorie DOT com In article <000801bf0f9a$f06e3d80$a451a7d1 AT jleung> you wrote: > ------=_NextPart_000_0005_01BF0F79.60E14A20 > Content-Type: text/plain; > charset="iso-8859-1" [and HTML to follow] Please, switch off that brain-damaged 'post both plain text and HTML' option in your Mail/News agent. It's a 100% useless waste of bandwidth. > I enter: > C:\gcc -Wall -o a1 a1.c func.c -lm You didn't really install 'gcc' into the root of drive C:\, as suggested by this quoted line, did you? I hope this just means that you disabled the usual '>' at the end of the DOS prompt, for some dubious reason. > I get: > C:/djgpp/bin/ld.exe: cannot open output file a1: Permission denied = > (EACCES) [File 'asst1' works, though] > My question: Why can I not name my executable file a1? How can I fix it = > so I can call it a1? Have you tried to see if any file or directory named 'a1' or 'a1.exe' might already exist, below the directory you're in? A simple dir a1.* should show you. > ------=_NextPart_000_0005_01BF0F79.60E14A20 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > > http-equiv=3DContent-Type> > > > > >
>

My system: Windows 98

>

My calamity is with compiling in MS-DOS, here it = > is:

>

I enter:

>

C:\gcc –Wall –o a1 a1.c func.c = > –lm

>

I get:

>

C:/djgpp/bin/ld.exe: cannot open output file a1: = > Permission=20 > denied (EACCES)

>

But with:

>

C:\gcc –Wall –o asst1 a1.c func.c = > –lm

>

I am fine i.e. I type in ‘asst1’ and my = > program runs in=20 > ms-dos.

>

My question: Why can I not name my executable file a1? = > How can I=20 > fix it so I can call it a1?

>

(this sounds somewhat trivial but I most know just in = > case it's=20 > related to something more important!!)

>

contents of the file size=3D+0>ENVIRON.LST

>

TMP=3DC:\WINDOWS\TEMP

>

TEMP=3DC:\WINDOWS\TEMP

>

PROMPT=3D$p$g

>

winbootdir=3DC:\WINDOWS

>

COMSPEC=3DC:\WINDOWS\COMMAND.COM

>

SOUND=3DC:\PROGRA~1\CREATIVE\CTSND

>

MIDI=3DSYNTH:1 MAP:E MODE:0

>

PATH=3DC:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND

>

DJGPP=3DC:\DJGPP\DJGPP.ENV

>

windir=3DC:\WINDOWS

>

BLASTER=3DA220 I5 D1 H5 P330 T6 E620

>

output of New">go32-v2:

size=3D2> >

go32/v2 version 2.0 built Nov 15 1998 14:36:43

>

Usage: go32 coff-image [args]

>

Rename this to go32.exe only if you need a go32 that can run v2 = > binaries as=20 > well as v1 binaries (old makefiles). Put ahead of the old go32 in your = > PATH but=20 > do not delete your old go32 –leave it in the PATH after this = > one.

>

Set GO32_V2_DEBUG=3Dy in the environment to get verbose output.

>

DPMI memory available: 28371 kb

>

DPMI swap space available: 33929 Kb

>

contents of face=3D"Courier New">AUTOEXEC.BAT:

>

C:\PROGRA~1\NETWOR~1\MCAFEE~1\BOOTSCAN.EXE C:\

>

@IF ERRORLEVEL 1 PAUSE

>

Autoexec.bat:

>

SET SOUND=3DC:\PROGRA~1\CREATIVE\CTSND

>

SET MIDI=3DSYNTH:1 MAP:E MODE:0

>

SET BLASTER=3DA220 15 D1 H5 P330 E620 T6

>

set PATH=3DC:\DJGPP\BIN;%Path%

>

set DJGPP=3DC:\DJGPP\DJGPP.ENV

>

Contents of Config.sys : Nothing in the file when = > opened in=20 > "System Configuration Utility" window

>

(Start =E0 Accessories face=3DWingdings>=E0 Systems Tools face=3DWingdings>=E0 System=20 > Information =E0 Tools face=3DWingdings>=E0=20 > System Configuration Utility)

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

>

 

> ------=_NextPart_000_0005_01BF0F79.60E14A20-- -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.