From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Linker error - please help Date: Wed, 08 Apr 1998 18:16:41 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 38 Message-ID: <352BF749.6588@cs.com> References: <6ggo8v$gg5$1 AT news01 DOT iafrica DOT com> NNTP-Posting-Host: ppp226.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 Precedence: bulk Neil Sinclair wrote: > > I get a problem when linking my program 'hello.c' that c:\djgpp\bin\ld.exe > cannot find 'crt0.o' (Enonent). > Please could you help. > I also get and error with some thing about not being able to find -lgcc. Do > I need to download something or set something up there. > Please e-mail me back if you have any answers: > neilroy AT iafrica DOT com I assume that you have not yet read the file 'readme.1st', which gives instructions for setting the two environment variables that DJGPP programs need to find their files. To paraphrase: Edit your AUTOEXEC.BAT, and make the following changes: - Add C:\DJGPP\BIN to your PATH - Add the line SET DJGPP=C:\DJGPP\DJGPP.ENV Reboot, and your problems should go away. If you are still having trouble, please download and read chapters 6 and 8 of the DJGPP Frequently Asked Questions list. Chapter 6.12 contains instructions for posting a system report here on this newsgroup. Alternatively, you could try out my DJVERIFY installation diagnostic utility. The latest alpha version is now downloadable from my web site (http://www.cs.com/fighteer/). -- John M. Aldrich - ICQ UIN# 7406319 * Anything that happens, happens. * Anything that, in happening, causes something else to happen, causes something else to happen. * Anything that, in happening, causes itself to happen again, happens again. * It doesn't necessarily do it in chronological order, though. --- Douglas Adams