Date: Mon, 8 Jan 1996 12:24:56 +0200 (IST) From: Eli Zaretskii To: James McMillan 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.