X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp Subject: Re: No such file or directory (ENOENT) Date: Wed, 18 Apr 2007 19:40:47 -0400 Organization: Aioe.org NNTP Server Lines: 59 Message-ID: References: <1176932955 DOT 338168 DOT 279850 AT y5g2000hsa DOT googlegroups DOT com> NNTP-Posting-Host: IVw7K97ih4IohxRqyKkqFw.user.aioe.org X-Complaints-To: abuse AT aioe DOT org X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MSMail-Priority: Normal To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com wrote in message news:1176932955 DOT 338168 DOT 279850 AT y5g2000hsa DOT googlegroups DOT com... > Whilst trying to compile simple (and correct) C++ files using the gpp > command, my ms-dos box shows the following error: > > cc1plus.exe: error: djgpp.ver: No such file or directory (ENOENT) > > The program continues looking for errors in my cpp file, and outputs > errors found, but when I correct the errors, the error above remains, > and most importantly, the executable file is not created. > > I checked for the variable settings in my autoexec.bat, and they are > correct (e.g., the following lines are at the bottom of the file: > > set DJGPP=C:\DJGPP\DJGPP.ENV > set PATH=C:\DJGPP\BIN;%PATH% > > ) > > I checked for the "missing" file (djgpp.env) cc1plus.exe searches for, > and I'm positive it is in the directory located by the variable > "DJGPP". > djgpp.ver? or djgpp.env? djgpp.env should be in the main DJGPP directory, which is: C:\DJGPP djgpp.ver is installed in three subdirectories on my system. C:\DJGPP\LIB\GCC-LIB\DJGPP\3.22 C:\DJGPP\LIB\GCC\DJGPP\3.41 C:\DJGPP\LIBEXEC\GCC\DJGPP\3.41 The version numbers for the directories may be different. If the directories don't exit or djgpp.ver isn't in them, it probably means that something wasn't installed. Anyway, all three just text files containing the following as the first line: #include > Finally, I do not even nearly have no clue, about the meaning of > "ENOENT". Posix 1003.1 ENOENT is "No such file or directory." Usually, the errors are abbreviations similar to the message. While I don't recall seeing anything which tells exactly what ENOENT means, I think ENOENT is "Error NO ENTry" indicating that there is no directory entry, i.e., file not found: "no such file or directory." Rod Pemberton