From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Linker Troubles With Version 2.01 Date: Wed, 13 Nov 1996 21:24:09 -0800 Organization: Three pounds of chaos and a pinch of salt Lines: 28 Message-ID: <328AACF9.427B@cs.com> References: <56dmbu$8ir AT hil-news-svc-5 DOT compuserve DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp108.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: David Loose <74372 DOT 3316 AT compuserve DOT com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp David Loose wrote: > > I am new to prgramming. I downloaded DJGPP version 2.01. I am having > problems with the lp.exe program. I am pretty sure that is the > linker. I get the following error when I try to compile a hello world > program. > > c:\djgpp\bin/ld.exe: cannot open crt0.o: No such file or directory > (ENOENT) You didn't follow the instructions in the 'readme.1st' file regarding proper setup of your environment. In order for DJGPP programs to be able to find their files, you must have set the following in your AUTOEXEC.BAT: SET DJGPP=C:\DJGPP\DJGPP.ENV Of course, if you installed DJGPP in a different drive or directory, change this accordingly. Also, please download the DJGPP Frequently Asked Questions list (v2/faq202b.zip) and read section 8.1, which answers this exact question and goes into a lot more detail as well. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Proud owner of what might one | http://www.cs.com/fighteer | | day be a spectacular MUD... | Plan: To make Bill Gates suffer | ---------------------------------------------------------------------