From: waters AT bnl DOT gov (James Waters) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP Error Date: Tue, 21 Apr 1998 19:06:50 GMT Organization: Brookhaven National Laboratory Lines: 70 Message-ID: <353ce529.2832887@news.bnl.gov> References: <6hfsu1$7us$1 AT o DOT online DOT no> NNTP-Posting-Host: waters.hfbr.bnl.gov To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Mon, 20 Apr 1998 18:20:45 +0200, "Sten Karsten Vartdal" wrote: >Hi, I'm trying to compile a program with DJGPP, but get this error: > >gcc.exe: installation problem, cannot exec `cpp': No such file or = >directory (ENO >ENT) > >I have downloaded and unziped the required files, the program is: > >void main { > return 0 >} > >What is wrong? > >--=20 >Sten Karsten Vartdal >stenvart-remove- AT online DOT no >http://home.sol.no/~stenvart/ > I get the same error message trying to compile the "hello.c" program. I'm new to DJGPP, but not new to C. I've read the README.1ST file and modified my AUTOEXEC.BAT file accordingly. There does't seem to be any info for this problem in the FAQ. I unzipped all the files as follows: d:\DJGPP>pkunzip -d d:\tmp\.zip where d: is the logical drive letter. I downloaded and installed version 2 files. Additonally, I downloaded and installed g++, g77 and gnu pascal, as well as the grx22 library. I did not download Object C. When I tried to compile "hello.c" I got that installation error message. I then tried to compile with the command: gcc -v -o hello.exe hello.c with the following response Reading specs from d:/djgpp/lib\spes gcc version 2.7.2.1.f.1 cpp -lang-c -v -undef -D__=2 followed by many -D__ declarations with the final line -D__DJGPP_MINOR=1 hello.c d:/djgpp/tmp\ccbaaaaa then the error message gcc.exe : installation problem, cannot exec 'cpp': No such file or directory (ENOENT). I tried editing the DJGPP.ENV file without luck. I did find some possilbe sources for errors in the [cpp] section. 1. CPLUS_INCLUDE_PATH - there is no %DJDIR%/contrib/grx20/include. It is now /contrib/grx22/include 2. I deleted the OBJCPLUS_INCLUDE_PATH and OBJC_INCLUDE_PATH lines because I didn't download Object C and the /lang/objc directory didn't exist. But, that didn't help. Anyone with any ideas? Jim Waters