From: "Dan Myers" Newsgroups: comp.os.msdos.djgpp Subject: Re: Nevermind Date: Sun, 2 Jan 2000 17:37:03 -0600 Organization: Avalon Networks Inc. Lines: 112 Message-ID: <84on2p$hk2$1@sword.avalon.net> References: <84oll7$h5v$1 AT sword DOT avalon DOT net> NNTP-Posting-Host: v90-123.ic.avalon.net X-Trace: sword.avalon.net 946855834 18050 205.217.148.223 (2 Jan 2000 23:30:34 GMT) X-Complaints-To: support AT avalon DOT net NNTP-Posting-Date: 2 Jan 2000 23:30:34 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Found the problem. I had an extra space in line one. It was all a false alarm. Dan Myers wrote in message news:84oll7$h5v$1 AT sword DOT avalon DOT net... > I feel stupid posting this to everyone, but it is a little frustrating, > since I am trying to run the simplest program ever, and can't get my > compiler to work. I have only been doing this a few days, but I really want > to learn C, and it is to the point where I need this compiler so I can jump > on in. > > Here is the scenario... > > I have installed all of the files one could possibly need into d:/djgpp. I > unzipped them will full pathnames. Attached is a list of all the files I > have unzipped to date, and you can see that I have all I need and then some. > > To complete the install, I changed my autoexec.bat. I have tried many > variations of this, but this does not seem to be the problem. > ____________ > rem - By Windows Setup - C:\WIN98\COMMAND\mscdex.exe /d:cdrom > > SET DJGPP=d:\djgpp\djgpp.env > PATH=d:\DJGPP\BIN > path=%PATH% > path=C:\Program Files\Mts > ________________ > > Next I have written my first little program, entitled "hello.c". Here is > the source. > > ___________ > > #include < stdio.h> > > int main ( ) { > printf("Hello World"); > return 0; > } > _________________ > > Next, I go to a DOS prompt and type in: > > gcc hello.c -o hello.exe > > To which the computer replies: > > hello.c:1: stdio.h: No such file or directory [ENOENT] > > So obviously the first thing I check is that my stdio.h file is in place, > but when I go to the "include" directory, I find that indeed the file is > there. So I naturally know that my problem is in my djgpp.env file, which > is in the root (d:/djgpp) directory where it should be. Since I have not > moved the file around, I have not changed any of the lines in this file. I > have a feeling that this is my problem, but I cannot find any info about > this, so I am stuck. Right now the first several lines of my .env file read > as such: > > _______________ > > #= Don't edit this line unless you move djgpp.env outside > #= of the djgpp installation directory. If you do move > #= it, set DJDIR to the directory you installed DJGPP in. > #= > DJDIR=%:/>DJGPP% > > +USER=dosuser > +GROUP=root > +TMPDIR=%DJDIR%/tmp > +EMU387=%DJDIR%/bin/emu387.dxe > +LFN=y > +TEXMFMAIN=%DJDIR%/share/texmf > > [bison] > BISON_HAIRY=%DJDIR%/lib/bison.hai > BISON_SIMPLE=%DJDIR%/lib/bison.sim > > [cpp] > CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include > C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include > OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang > /objc > OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc > > [gcc] > COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin > LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib > > [info] > INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info > +INFO_COLORS=0x1f.0x31 > +INFO_LINES=40 > ____________ > > I am running Win 98 if that helps, and let me know if you need any other > info to diagnose and help me to solve the problem. A thousand thanks to > those of you who take the time to get me up and running. > > Dan > > > >