www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/09/19:56:21

From: j DOT aldrich6 AT genie DOT com
Message-Id: <199607092347.AA279426071@relay1.geis.com>
Date: Tue, 9 Jul 96 23:35:00 UTC 0000
To: epic AT aros DOT net
Cc: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: Problem with v2 of djgpp

Reply to message 3101200    from EPIC AT AROS DOT NET on 07/09/96  3:46PM


>I tried to run gcc and got this error:
>ld.exe: cannot open -lgcc: No such file or directory (ENOENT)
>
>I had done this command:
>gcc -o output hello.c
>
>I am using version 2 of DJGPP.
>
>Does anyone know how I can fix this problem?

This error is caused by not setting up DJGPP correctly.  You need to
download and read the file 'readme.1st' in the v2 directory where you
got DJGPP.  It identifies the precise steps needed for installation.

For a quick rundown, did you:

1) Unzip the DJGPP files with pkunzip -d, to recreate the directory structure?
DJGPP does you no good if all the files are lumped into the same directory.

2) Install DJGPP in a completely fresh directory?  Installing it on top of an
old
DJGPP installation (such as v1.*) will not work.

3) Add the line "SET DJGPP=C:\DJGPP\DJGPP.ENV" to your autoexec.bat
file?  This tells all DJGPP programs where to look for their files.  If you put
DJGPP somewhere other than in C:\DJGPP, change the line accordingly.

4) Add C:\DJGPP\BIN to your PATH?  (or wherever you put DJGPP)

5) Reboot after doing this, so the settings take effect?

If you have done all of the above, and still have problems, then post again,
with the contents of your config.sys, autoexec.bat, the output of 'set' when
invoked from DOS, the output of 'go32-v2' when invoked without arguments,
and the output when you compile your program with 'gcc -v ...'  You can
capture gcc's output by using the 'redir' command that comes with DJGPP.

John

- Raw text -


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