www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/22/05:31:22

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gcc on hello world hangs w/ djgpp v2.0
Date: Sun, 22 Sep 1996 04:09:49 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 37
Message-ID: <32451E7D.28F@cs.com>
References: <3244AD1F DOT 200C AT beachnet DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp211.cs.com
Mime-Version: 1.0
To: David Spencer <dave AT beachnet DOT com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

David Spencer wrote:
> 
> I've just installed djgpp v2.0 on my system and with a trivial
> 1 line "hello world" program, gcc hangs.

Hangs, as in soft crash (you can kill it with ctrl-alt-delete),
or as in hard crash (you have to press Reset)?  Do you see any
error messages when it hangs?

> If I run w/ -v it prints out that it is invoking cpp.
> 
> I am running gcc in a dos window within windows 95.

Make sure you have DPMI memory in the DOS box control panel set high
enough.  The max Win95 allows you to select is 16MB, but you can type
in manually anything up to 64MB.

> PATH=D:\CAFE\BIN;D:\CAFE\JAVA\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\MSINPUT\MOUSE;D:\GNU\BIN;D:\UNIX;E:\DJGPP

It looks like you're not finding the right cpp.exe because your PATH
is set wrong.  It should contain "E:\DJGPP\BIN", not "E:\DJGPP".  Also,
look on the directories that come before DJGPP\BIN to make sure they
don't have any programs that conflict with the DJGPP ones.  (i.e.
make.exe, cpp.exe. cc1.exe, as.exe, ld.exe, etc.)

If this doesn't solve your problem, it would be helpful if you could
capture the output of 'gcc -v' using the 'redir' program that comes
with DJGPP.  Even a partial listing (up to the point of the crash)
would help.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |        fighteer AT cs DOT com         |
|    *  Proud user of DJGPP!  *    |   http://www.cs.com/fighteer   |
|    ObJoke:  If Bill Gates were a robber, not only would he        |
|     shoot you, but he'd send you a bill for the bullets.          |
---------------------------------------------------------------------

- Raw text -


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