delorie.com/archives/browse.cgi | search |
Message-ID: | <000801bf0f9a$f06e3d80$a451a7d1@jleung> |
From: | "Vivian Leung" <viv DOT leung AT utoronto DOT ca> |
To: | <djgpp AT delorie DOT com> |
Subject: | Need DJGPP gurus' to help me, compiling problem! |
Date: | Tue, 5 Oct 1999 21:34:17 -0400 |
MIME-Version: | 1.0 |
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV> <P><FONT size=3D2>My system: Windows 98</FONT></P> <P><FONT size=3D2>My calamity is with compiling in MS-DOS, here it = is:</FONT></P> <P><FONT size=3D2>I enter:</FONT></P> <P><FONT size=3D2>C:\gcc –Wall –o a1 a1.c func.c = –lm</FONT></P> <P><FONT size=3D2>I get:</FONT></P> <P><FONT size=3D2>C:/djgpp/bin/ld.exe: cannot open output file a1: = Permission=20 denied (EACCES)</FONT></P> <P><FONT size=3D2>But with:</FONT></P> <P><FONT size=3D2>C:\gcc –Wall –o asst1 a1.c func.c = –lm</FONT></P> <P><FONT size=3D2>I am fine i.e. I type in ‘asst1’ and my = program runs in=20 ms-dos.</FONT></P> <P><FONT size=3D2>My question: Why can I not name my executable file a1? = How can I=20 fix it so I can call it a1?</FONT></P> <P><FONT size=3D2>(this sounds somewhat trivial but I most know just in = case it's=20 related to something more important!!)</FONT></P> <P><STRONG>contents of the file </STRONG><FONT=20 size=3D+0><STRONG>ENVIRON.LST</STRONG></P> <P>TMP=3DC:\WINDOWS\TEMP</P> <P>TEMP=3DC:\WINDOWS\TEMP</P> <P>PROMPT=3D$p$g</P> <P>winbootdir=3DC:\WINDOWS</P> <P>COMSPEC=3DC:\WINDOWS\COMMAND.COM</P> <P>SOUND=3DC:\PROGRA~1\CREATIVE\CTSND</P> <P>MIDI=3DSYNTH:1 MAP:E MODE:0</P> <P>PATH=3DC:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND</P> <P>DJGPP=3DC:\DJGPP\DJGPP.ENV</P> <P>windir=3DC:\WINDOWS</P> <P>BLASTER=3DA220 I5 D1 H5 P330 T6 E620</P></FONT><FONT size=3D2></FONT> <P><STRONG>output of <FONT face=3D"Courier = New">go32-v2:</P></FONT></STRONG><FONT=20 size=3D2> <P>go32/v2 version 2.0 built Nov 15 1998 14:36:43</P> <P>Usage: go32 coff-image [args]</P> <P>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.</P> <P>Set GO32_V2_DEBUG=3Dy in the environment to get verbose output.</P> <P>DPMI memory available: 28371 kb</P> <P>DPMI swap space available: 33929 Kb</P></FONT> <P><STRONG>contents of <FONT=20 face=3D"Courier New">AUTOEXEC.BAT:</P></FONT></STRONG><FONT size=3D2> <P>C:\PROGRA~1\NETWOR~1\MCAFEE~1\BOOTSCAN.EXE C:\</P> <P>@IF ERRORLEVEL 1 PAUSE</P> <P>Autoexec.bat:</P> <P>SET SOUND=3DC:\PROGRA~1\CREATIVE\CTSND</P> <P>SET MIDI=3DSYNTH:1 MAP:E MODE:0</P> <P>SET BLASTER=3DA220 15 D1 H5 P330 E620 T6</P> <P>set PATH=3DC:\DJGPP\BIN;%Path%</P> <P>set DJGPP=3DC:\DJGPP\DJGPP.ENV </P> <P><STRONG>Contents of Config.sys : </STRONG>Nothing in the file when = opened in=20 "System Configuration Utility" window </P> <P>(Start <FONT face=3DWingdings>=E0</FONT> Accessories <FONT=20 face=3DWingdings>=E0</FONT> Systems Tools <FONT = face=3DWingdings>=E0</FONT> System=20 Information <FONT face=3DWingdings>=E0</FONT> Tools <FONT = face=3DWingdings>=E0</FONT>=20 System Configuration Utility)</P> <P> </P> <P> </P><FONT size=3D2> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P></FONT> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P></FONT></DIV></BODY></HTML> ------=_NextPart_000_0005_01BF0F79.60E14A20--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |