delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/17/16:08:43

From: j DOT aldrich6 AT genie DOT com
Message-Id: <199605171947.AA148742453@relay1.geis.com>
Date: Fri, 17 May 96 19:43:00 UTC 0000
To: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: Starting go32-v2 ?

Reply to message 0446759    from SEYMOUR AT DGBT. on 05/16/96  1:57PM


>D:\dgjpp\BIN>go32-v2 coff-image
>go32/v2: Error: coff-image:

Let me guess... you're one of those people who, when they see 'Press any
key to continue', look for the "Any" key, right?

When it says 'coff-image', it means the name of the coff image that is
produced when you compile your program.

If you compile your program like this:  gcc myprog.c
you should find two files in the directory afterwards:  a.out, and a.exe.
a.out is the coff image, and a.exe is a standalone executable that you
can run without invoking go32-v2 first.  (But it still requires a DPMI host.)

A better way to compile is:  gcc -o myprog myprog.c
This causes gcc to output 'myprog' and 'myprog.exe' instead of a.out
and a.exe.  They are the same thing, though (coff image and executable).
If you don't want the coff image, use '-o myprog.exe'.

>D:\dgjpp\BIN>info
>info.exe: dir: No such file or directory (ENOENT)

Did you read the 'readme.1st' file in the the v2 directory when you dl'd
DJGPP?  It tells you specifically that you have to set an environment
variable called 'DJGPP' which points to the DJGPP.ENV file.  This file
tells info where to look for its files (among other things).
Put this line into your autoexec.bat:

set DJGPP=D:/DJGPP/DJGPP.ENV

I use forward slashes in this example, but it doesn't matter which you use.

WAIT!  I just noticed something else, too!!

>D:\dgjpp\BIN>info
    ^^^^^
Did you really spell it that way?  It's DJGPP, not DGJPP!  Rename the directory
and you should be ok.  :)

hth

John

- Raw text -


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