Date: Wed, 04 Jun 1997 12:22:56 -0700 From: Bill Currie Subject: Re: ld.exe problem To: Matt Pierce Cc: djgpp AT delorie DOT com, mpierce AT throne DOT isp DOT homestar DOT net Reply-to: billc AT blackmagic DOT tait DOT co DOT nz Message-id: <3395C090.6CDD@blackmagic.tait.co.nz> Organization: Tait Electronics NZ MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit References: <338B9CE6 DOT 7799 AT geocities DOT com> Precedence: bulk Matt Pierce wrote: > > Hey. I'm having a problem when I try to link a program in RHIDE. I've > skimped the code down to just an empty main() function with no header > files and no complications, but when I try to link it, the linker gives > me the error 'ld.exe: cannot open -lgcc: File in wrong format.' I > searched through my djgpp directory for any lgcc.* file, but there > didn't seem to be any. Anyone know what's going on? what you're actually looking for is libgcc.a (-lfoo causes ld to look for libfoo.a in the lib search path). As to what's wrong, all I can think of (and I could easily be wrong) is libgcc.a has been corrupted somehow. If this is the case, try re-extracting it from the zip it came from (don't know if it's djdev*.zip or gcc*.zip). Bill -- Leave others their otherness.