delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/28/16:31:46

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ld.exe
Date: 28 Aug 1997 08:29:36 GMT
Organization: The National Capital FreeNet
Lines: 27
Message-ID: <5u3ctg$cbs@freenet-news.carleton.ca>
References: <199708270216 DOT WAA15034 AT delorie DOT com>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet3.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"Terry Arnold" (arnold2826 AT why DOT net) writes:
[Web-crud deleted]
> when i link my program it always has this weird error it says
> Creating: Main.exe
> Error  : ld.exe  : Cannot load -lgcc  : File format not recognized
> There were some errors=20
> What do I do?

Well firstly, you try to quote error messages exactly as the compiler
generates them. There is no "There were some errors=20" message in any
part of DJGPP; the closest is plain old "There were some errors" generated
in RHIDE.
Accurate repeating of these types of message (preferably by cut and paste)
makes it much easier for us in the newsgroup to track down the cause.

Secondly, in this case I'd suspect you put -lgcc as a link switch, instead
of -lgpp. -lgpp is the switch for the C++ library. The message means the
linker didn't find a "libgcc.a" file. There is none, so I figure you meant
libgpp.


--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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