From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Configure problem DJGPP Date: Wed, 26 Feb 1997 21:37:56 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 50 Message-ID: <33151DB4.7B3E@cs.com> References: <33144FCE DOT 35D8 AT wineasy DOT se> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp202.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Johan Davidsson wrote: > > I am trying to congigure DJGPP for my computer. But when I am running > GCC or GXX I get the error message "ld.exe: cannot open -lgcc: File in > wrong format". I have tried to consult the documentation but I can't > figure out what to do. Can someone please help me out? I can think of several things offhand: - You have another compiler on your system that has its own version of 'ld.exe', and it is in your PATH before the DJGPP ld. Solution: Put the DJGPP bin directory first in your PATH. - You have defined the LIBRARY_PATH variable in your environment to point to a directory that has a non-DJGPP copy of 'libgcc.a'. Solution: Remove this setting from your environment. - Your copy of 'libgcc.a' has somehow been corrupted. Try unzipping it again, and also try scanning your computer for viruses. - You used 'ar' to place a non-COFF object file into 'libgcc.a'. As ar only accepts COFF-format objects (AFAIK), I don't see how this is possible... in any case, either delete the offending file or reinstall libgcc.a. - You are installing DJGPP over an older version of DJGPP, but didn't install the new libraries. Please make sure that you have the latest version (v2.01 at present) and that you've deleted or moved all old installations before installing v2.01. - You have some other miscellaneous configuration problem that's hosing DJGPP. See below. If these don't help solve the problem, please download the DJGPP Frequently Asked Questions list (v2/faq210b.zip from SimTel) and follow the format indicated in chapter 6.12 for posting details of your configuration to the newsgroup/mailing list. The FAQ can also be read online at . You could also volunteer to try out my DJVERIFY installation diagnostic utility, which can detect common installation mistakes and recommend solutions, and can also create a full bug report suitable for submission to the mailing list. The latest alpha version can be had from , or you can email me personally if you'd like to receive the latest Work In Progress. Hope this helps! -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | "Starting flamewars since 1993" | http://www.cs.com/fighteer | | *** NOTICE *** This .signature is generated randomly. | | If you don't like it, sue my computer. | ---------------------------------------------------------------------