Mail Archives: djgpp/2000/08/09/12:02:41
> From: Ron House <house AT usq DOT edu DOT au>
> Newsgroups: comp.os.msdos.djgpp
> Date: Wed, 09 Aug 2000 02:08:57 +0000
>
> I have been following the instructions given to upgrade my compiler. I
> deleted the list of files given in the readme file (cc1.exe etc) -
> although these weren't in the directories stated, they were in
> lib/gcc-lib/djgpp/2.81.
>
> I unpacked lgp2952b.zip, gcc2952b.zip, gpp2952b.zip, and djcrx203.zip.
>
> Then I had the following dialog. (sdir is a program of mine to locate
> files.):
>
> --------------------------------------------------
> c:\tmp>gxx t.cpp
> gxx.exe: installation problem, cannot exec `cc1plus': No such file or
> directory (ENOENT)
Remove gxx.exe as well. Then use gpp.exe (which comes with
gpp2952b.zip) instead.
Your gxx.exe is from the v2.8.1 distribution, so it looks for
cc1plus.exe in the lib/gcc-lib/djgpp/2.81, instead of in
lib/gcc-lib/djgpp/2.952.
The rule is: remove ALL the files that belong to the old version.
Section 4.7 of the DJGPP FAQ list shows one way of doing that
efficiently.
If the above still doesn't help, say "gpp -v t.cpp" and post here
everything that the compiler prints. (You might look into that output
first, as it should give a clue as to what's happening.)
> As you can see, the files are there, but in a "2.952" directory that
> isn't being 'seen'. I found and inspected a file called djgpp.env, but
> nothing in it seems to refer to the old "2.81" directory, which was
> seen, so I am somewhat baffled.
The 2.81 thing is hardwired into the compiler binary, because that's
how it was configured when it was built. Since gxx.exe is from an old
distribution, it still wants to find its subprograms and libraries in
that place. That's why it fails.
- Raw text -