Message-ID: <000801bf0f9a$f06e3d80$a451a7d1@jleung> From: "Vivian Leung" To: Subject: Need DJGPP gurus' to help me, compiling problem! Date: Tue, 5 Oct 1999 21:34:17 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01BF0F79.60E14A20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_0005_01BF0F79.60E14A20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 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 ms-dos. My question: Why can I not name my executable file a1? How can I fix it = so I can call it a1? (this sounds somewhat trivial but I most know just in case it's related = to something more important!!) contents of the file 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 go32-v2: 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 well as v1 binaries (old makefiles). Put ahead of the old go32 in = your PATH but 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 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=20 Contents of Config.sys : Nothing in the file when opened in "System = Configuration Utility" window=20 (Start =E0 Accessories =E0 Systems Tools =E0 System Information =E0 = Tools =E0 System Configuration Utility) ------=_NextPart_000_0005_01BF0F79.60E14A20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

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 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 go32-v2:

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 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 =E0 Systems Tools =E0 System=20 Information =E0 Tools =E0=20 System Configuration Utility)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

------=_NextPart_000_0005_01BF0F79.60E14A20--