delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/06/11:54:11

Date: Wed, 6 Oct 1999 14:36:25 +0200
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
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

> <!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 &#8211;Wall &#8211;o a1 a1.c func.c =
> &#8211;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 &#8211;Wall &#8211;o asst1 a1.c func.c =
> &#8211;lm</FONT></P>
> <P><FONT size=3D2>I am fine i.e. I type in &#8216;asst1&#8217; 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 &#8211;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>&nbsp;</P>
> <P>&nbsp;</P><FONT size=3D2>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P></FONT>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P>
> <P>&nbsp;</P></FONT></DIV></BODY></HTML>

> ------=_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.

- Raw text -


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