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: References: 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