Mail Archives: djgpp/2007/04/19/04:17:41
On 19 apr, 01:40, "Rod Pemberton" <do_not_h DOT DOT DOT AT bitfoad DOT cmm> wrote:
> <nielsdimm DOT DOT DOT 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?
You are right and I am sorry, only the env file is present in the
location.
>
> 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.
I checked fot the files, and only the last two are legal locations on
my system, the djgpp.ver file is present.
>
> Anyway, all three just text files containing the following as the first
> line:
>
> #include <sys/version.h>
I created the first location, and created a text file named
"djgpp.ver" containing the line above, and it works!
>
> > 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."
Thank you for the background info ;-)
>
> Rod Pemberton
Niels Dimmers.
- Raw text -