delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/16/21:32:18

Message-ID: <000401bee800$90be7ec0$32c2ef9b@Intekom7546>
From: "Stefan Viljoen" <rylan AT intekom DOT co DOT za>
To: <djgpp AT delorie DOT com>
References: <37B653F5 DOT 39EC AT xtra DOT co DOT nz>
Subject: Re: DJGPP Compiler
Date: Mon, 16 Aug 1999 14:08:42 +0300
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Reply-To: djgpp AT delorie DOT com

----- Original Message -----
From: Bruce.Woods <Bruce DOT Woods AT xtra DOT co DOT nz>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
Sent: Sunday, August 15, 1999 8:45 AM
Subject: DJGPP Compiler

Hi Bruce!

> I have been exe gcc from windows dos prompt and getting the following
> error; gcc.exe filename no such file or directory (ENDENT)
> gcc.exe: no input files

This occurs because you have net done two things (assuming that you did
install DJGPP correctly according to the FAQ instructions, etc).

1. You have not set up the environment variable DJGPP for the DOS session
you are attempting to execute DJGPP in.

This means that you need to somewhere execute the line

SET DJGPP=C:\PROGRAMS\DJGPP

from the DOS prompt before attempting to execute GCC.

2. You have not included DJGPP\BIN in the path.

This means that your DOS command interpreter cannot find GCC.EXE, which is
not in the root (where you seem to end up when entering a DOS session) but
in the DJGPP\BIN
directory.

> The txt source files do exist and I am exe from
> the directory that contains these files, checked spelling etc.
>
> gcc -o filename filename.c

This will not work until you set up the environment variable and the path as
stipulated above.

> I have now tried restarting my pc in dos mode and doing the same. I get
> the following error; load error: no DPMI - get csdpmi*b.zip

All this means is that Windows is not available to do DPMI services - you
need to get the CWSDPMI DOS DPMI server if you want to work with DJGPP in
"pure" DOS. 99% of the time this is not neccessary as DJGPP in my
experience, as well
as most programs it produces, runs 100% flawlessly under Windows 95. I have
NOT tested it under 98 however.

> I think the compiler is missing some files.

Correct, this is also possible. Did you use the ZipPicker at
http://www.delorie.com/djgpp to ensure that you did get all the
compiler & supporting files that you might need?

> environ.lst from c:\ dos prompt came up bad command

Just do "set" like this:

C:\>set <enter>

This will show your environment settings.

> go32-v2
> DPMI memory available : 10391kb
> DPMI swap space available 2725kb
>
> seems to change all the time

I do not know why these vary - according to the above you have more than
enough memory to easily execute any DJGPP
development program like GCC, strip, etc... No problems here.

> Config.sys and Autoexec.bat attached

See the message I include below regarding CONFIG.SYS and AUTOEXEC.BAT
alterations for DJGPP programs:

David DellaCosta <amarodeeps AT earthlink DOT net> wrote in message
news:37b6db75 DOT 479731 AT news DOT earthlink DOT net...
> On Sun, 15 Aug 1999 14:10:41 +0300 (IDT), Eli Zaretskii
> <eliz AT is DOT elta DOT co DOT il> wrote:
>
> >
> -I have had both path statements together, various different
> capitalizations, and placed the statements in various positions
> with relationship to each other.  Unfortunately, I don't understand
> well how the AUTOEXEC.BAT file is used, so I'm mostly
> guessing.

Why do you want to use a file called AUTOEXEC.BAT? IMHO that causes
confusion. I have Windows 95, and I use a batch file called DJMODE.BAT that
sets up my DJGPP DOS box in which I do my compiling and editing (using
SETEDIT). How I set it up is like this. Here is my DJMODE.BAT file:

@ECHO OFF
CLS
LH DOSKEY /INSERT
SET
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRAMS\BAT;C:\PROGRAMS\ARCERS;C:\PRO
GRAMS\DJGPP\BIN;C:\PROGRAMS\DJGPP\NASMIDE;C:\PROGRAMS\DJGPP\SETEDIT\BIN
SET DJGPP=C:\PROGRAMS\DJGPP\DJGPP.ENV
CD\PROGRAMS\DJGPP\C
DIR

All I did then was to create a normal Windows shortcut on the desktop to
this batch file. This of course results in a Windows DOS box being opened in
which I do my development. Why don't you try something similar? All you'd
need to
change was the "path" line to suit your local directory structure.

-- End message

Why don't you try this too? Please feel free to mail me if you have further
problems.

PS - I hope the info here is accurate! It worked for me, so just maybe it
might work for you ;)

Thanks for choosing DJGPP - it is the BEST!

Regards,

Stefan Viljoen (a. k. a. Rylan)

--
This message courtesy of
RylanNet rylan AT intekom DOT co DOT za
http://home.intekom.com/rylan/
--
StarWars for ever!.



- Raw text -


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