delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/08/05:34:35

Date: Mon, 8 Jan 1996 12:24:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: James McMillan <jmcmilla AT bud DOT peinet DOT pe DOT ca>
Cc: djgpp AT delorie DOT com
Subject: Re: LD.EXE problem!

On Sun, 7 Jan 1996, James McMillan wrote:

>  Ok when I trie to compile with gcc it gets stuck on ld.exe all the time!
> the error I get is that:
>   LD.EXE connet find file -lgcc

What command line do you use to invoke gcc?

Do you have a file named libgcc.a in the lib/ subdirectory of the main
DJGPP installation directory?  If you don't, you need to install it (from
djdev archive).  If you do, then check that you have a DJGPP environment 
variable set to point to the full pathname of the file named DJGPP.ENV in 
your DJGPP installation directory.

If nothing above helps, post the contents of you AUTOEXEC.BAT and the 
output of the command `set' when typed from DOS prompt, and I'll try to 
help.

>  Now being the curios type I checked this program with the switch -l and every time
> I put a file in like:
> 
>       ld -l test1.h

Don't do this.  The correct command line for ld should include many other 
parameters which gcc gets right for you.  So always prefer linking 
through gcc, not by calling ld directly.

- Raw text -


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