From: Charles Terry Newsgroups: comp.os.msdos.djgpp Subject: Re: Help: Newbie can't compile a ' Hello world' program Date: Wed, 08 Apr 1998 09:05:00 -0700 Organization: All USENET -- http://www.Supernews.com Lines: 67 Message-ID: <352BA02C.46B0@plinet.com> References: <6gfvq9$ref$1 AT newton DOT pacific DOT net DOT sg> NNTP-Posting-Host: 24797 AT 207 DOT 174 DOT 3 DOT 197 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 Daniel Cheng wrote: > > I am a newbie to djgpp. I need some help to compile my first c program. > I outline below what I have done up till today. > > I have downloaded the following zip files: > > BNU281B.ZIP GCC280B.ZIP FAQ210B.ZIP DJDEV201.ZIP > RHIDE14B.ZIP MAK3761B.ZIP TXI390B.ZIP RSXDJ131.ZIP > > They all unzipped successfully into the following directory structure > (D drive is my PC harddisk): > > Directory of D:\djgpp > > [.] [..] [BIN] [GNU] [INFO] > [MANIFEST] DJGPP.ENV [INCLUDE] [LIB] [TMP] > [ZONEINFO] [SHARE] [CONTRIB] [DOC] README.1ST > COPYING.DJ [FAQ] > > I run setdjgpp using the following command: > > setdjgpp d:\djgpp d:/djgpp > > I have checked that both djgpp and library_path are defined: > > echo %library_path% gives d:\djgpp\lib > echo %djgpp% gives d:\djgpp\djgpp.env > > Also, PATH has d:\djgpp\bin > > When I tried to compile a c program such as: > > gcc filename.c > > I got the following two error messages: > > No include path in which to find stdio.h > No include path in which to find stdlib.h > > Have I missed out anything? BTW I have read the readme.1st and the FAQ, > but cannot figure out what else do I need to do. > > I am running djgpp in a MSDOS window under Window95. I am using a PC with > pentium 200MHz processor and 32M memory. > > Thank you for any assistance. > > Daniel I'm probably not the best qualified to respond as I don't run win95 but as I seem to be the quickest I'll try to help. Try running > gcc -Id:\djgpp\include filename.c If that works but gives an error about crt0.o not being found then dj is not finding the djgpp.env file. the > setdjgpp d:\djgpp d:/djgpp command you used above is unfamiliar to me- is it a batch file? I used set DJGPP=d:\djgpp\djgpp.env in my autoexec.bat file and it works fine. If this doen't work I'm sure the cavelry is on the way. Charles Terry