Mail Archives: djgpp/2007/04/18/19:46:18
<nielsdimmers AT gmail 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 <sys/version.h>
> 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
- Raw text -