delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/04/19/04:17:41

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: nielsdimmers AT gmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: No such file or directory (ENOENT)
Date: 19 Apr 2007 01:13:21 -0700
Organization: http://groups.google.com
Lines: 79
Message-ID: <1176970401.797646.239820@n76g2000hsh.googlegroups.com>
References: <1176932955 DOT 338168 DOT 279850 AT y5g2000hsa DOT googlegroups DOT com>
<f06a9a$g31$1 AT aioe DOT org>
NNTP-Posting-Host: 82.192.92.47
Mime-Version: 1.0
X-Trace: posting.google.com 1176970402 30225 127.0.0.1 (19 Apr 2007 08:13:22 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Thu, 19 Apr 2007 08:13:22 +0000 (UTC)
In-Reply-To: <f06a9a$g31$1@aioe.org>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: n76g2000hsh.googlegroups.com; posting-host=82.192.92.47;
posting-account=t79uoQ0AAAAChfOYqH_Gz5HzJuXmOwwQ
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019