delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/13/05:30:23.1

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: help needed...
Date: 13 Mar 2003 10:00:22 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 29
Message-ID: <b4pkrm$ren$1@antares.lu.erisoft.se>
References: <b4j3qe$s7i$1 AT bagan DOT srce DOT hr>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

bjosip (jbiscanNOSPAM AT public DOT srce DOT hr) wrote:
: I just downloaded djgpp and unpacked it. I set the environment variables and
: then run the rhide. I wrote a simple hello world program, compiled it

Show us the output from "set".

: successfully and when I tried to run it, I got this error:

: Error: c:/djgpp/bin/ld.exe: cannot find -lgcc
: Error: collect2: ld returned 1 exit status

This is a link error, which is generated when linking which is the
last stage of a compilation. It can't be generated when running the
program.

Are you using an IDE?

Try without it to see if it's the IDE or not that is the problem.

: What is the problem and what do I have to do?
: thanks for any help...

If it's not working outside the IDE, add "-v" to the compiler flags
and show us all the output.


Right,

						MartinS

- Raw text -


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