delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/10/15:01:31

From: dannys AT erols DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Please: Newbie and "Who's Afraid of C++" needs help w/djgpp
Date: Sat, 10 Oct 1998 14:53:30 -0400
Lines: 148
Message-ID: <361FAD2A.83A@erols.com>
References: <Pine DOT OSF DOT 4 DOT 05 DOT 9810101632590 DOT 20988-100000 AT sable DOT ox DOT ac DOT uk>
NNTP-Posting-Host: 207-172-192-70.s7.as2.nyd.erols.com
Mime-Version: 1.0
X-Trace: winter.news.erols.com 908045713 7431 207.172.192.70 (10 Oct 1998 18:55:13 GMT)
X-Complaints-To: abuse AT rcn DOT com
X-Mailer: Mozilla 3.0Gold (Win95; U)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thanks George. In reply to your requests...

George Foot wrote:
> 
> On Sat, 10 Oct 1998 dannys AT erols DOT com wrote:
> 
> > Sorry if this request is too specific...
> 
> No request can be too specific -- it's vague requests that are
> hard to answer.
> 
> > I ran the check under instruction # 2.4 (go32-v2) and got the following:
> >
> > go32/v2 version 2.0 built Jan 23 1996 22:03:02
> > 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.
> > DPMI memory available: 40272 Kb
> > DPMI swap space available: 22332 Kb
> >
> > Am I correct in assuming that this means that the compiler is installed
> > okay?
> 
> It implies that some things are OK.  If you didn't need to go to
> djgpp's `bin' directory to do this then your path is correct.
> If you did need to, then your path is not correct.
> 
> > I copied the sample files to c:\whos.
> >
> > Then I tried to compile itemtst1 and got a slew of Bad command or file
> > name messages scrolling down and then a bunch of lines referring to
> > itemtst1.cc: follwed by a number, 0, 7, 10, etc and then "undefined
> > reference to 'StockItem: :Display and other similar messages to numerous
> > to list here. and then finally I end up with the prompt C:\whos\normal>.
> >
> > Obviously something is wrong. Can you help please?
> 
> Please post the output of the `set' command at a DOS prompt,
> i.e. do this:
> 
>     set > set.txt
> 
> and post the text file.

This is the out put of the set command:

TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
DJGPPTMP=c:
DJGPPRUN=c:
PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\MCAFEE\WEBSCAN\BROWSER\BIN
DJGPP=c:/djgpp/djgpp.env
windir=C:\WINDOWS
BLASTER=A220 I5 D1 H5 P330 T6 E620
CMDLINE=script -f setcom

 Also post your autoexec.bat, and say
> the exact path to where djgpp is installed (the path to
> `djgpp.env').  
This is my autoexec.bat file;

@C:\PROGRA~1\NORTON~2\NAVDX.EXE /Startup
rem - By Windows Setup - MSCDEX.EXE /D:OEMCD001 /L:F
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\MCAFEE\WEBSCAN\BROWSER\BIN
rem - By Windows Setup - MSCDEX.EXE /D:OEMCD001 /L:F
rem - by djgpp setup
set djgpptmp=c:
set djgpprun=c:
set DJGPP=%djgpprun%\DJGPP\DJGPP.ENV
set PATH=%djgpprun%\DJGPP\BIN;%PATH%
call setdjgpp %djgpprun%\djgpp %djgpprun%/djgpp

The exact path to djgpp.env is:

c:\djgpp\djgpp.env

In addition, go to your djgpp `manifest'
> directory and type this:
> 
>     dir /b *.mft > manifest.txt
> 
> Post that file too.

manifest.txt is:

BNU252B.MFT
CSDPMI1B.MFT
DJDEV200.MFT
GCC272B.MFT
GDB412B.MFT
GPP272B.MFT
LGP271B.MFT
TXI360B.MFT

> 
> Finally, tell us exactly what you typed to compile that program.
> If you ran a batch file, tell us exactly what the batch file
> says.  Also post all the error messages produced.  The simplest
> way to do this is instead of calling:
> 
>     gcc .....
> 
> call this:
> 
>     redir -o output.txt -eo gcc -v .....
> 
> `-v' means to give more information about what gcc is doing.
> When you perform this command you won't see the output on the
> screen, but you can read it in `output.txt'.  Please include
> that file in your next posting too.

The batch file I ran is mk.bat. It reads as follows:

cd ..\code
call mknorm %1
cd ..\normal

Under the directory c:\whos\normal this is what I typed to compile the
program itemtst1:

mk itemtst1

Since I am a relative novice at programming I may have made a mistake in
carrying out your final request, but this is exactly what I typed and
what was generated. Please let me know what I did wrong.

c:\whos\normal>redir -o output.txt -eo gcc -v mk itemtst1

output.txt reads as follows:

gcc.exe: mk: No such file or directory (ENOENT)
gcc.exe: itemtst1: No such file or directory (ENOENT)
Reading specs from c:/djgpp/lib\specs
gcc version 2.7.2

Thanks for your help.



> 
> --
> george DOT foot AT merton DOT oxford DOT ac DOT uk
> 
> xu do tavla fo la lojban  --  http://xiron.pc.helsinki.fi/lojban/lojban.html

- Raw text -


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