Mail Archives: djgpp/1997/08/28/16:31:46
"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 -