From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9ce273cd438d3c01 X-Google-Attributes: gid103376,public From: Gerald Kasner Subject: Re: How to use gcc for gnat and C/C++? Date: 1997/07/17 Message-ID: <33CDC800.496ED885@Physik.Uni-Magdeburg.DE>#1/1 X-Deja-AN: 257379357 References: <33CD621E.7D18@codenet.net> Organization: Univ. of Magdeburg, Dept of CS, Germany Newsgroups: comp.lang.ada Date: 1997-07-17T00:00:00+00:00 List-Id: Charlie Gage wrote: > > Greetings, > > I have installed gnat version 3.09 for Redhat linux 4.2, which has > the GNU C/C++ compiler version 2.7.2.1 installed. My problem is that > after installing gnat, the "gcc" for C was replaced with the version > for gnat. Now the gnat version of "gcc" does not work with C compiles. > I think it might be that the version of gnat I got was compiled for > i486-linux, and my C compiler was for version i386-linux. At least > this is what I discovered after looking in /usr/lib/gcc-lib. > > Do I need to find a new version of gnat, or am I doing something > wrong here? Is there a way to separate the two compilers, such as, > gcc (for C), and gada (for gnat)? > > Thanks, > Charlie > email: cgage@codenet.net You should make symbolic links from the i386-linux/2.7.2.1/* stuff like cc1 cpp ... to the i486-linux/2.7.2.1/ directory. This should work fine. The i386-linux directory seems to be a naming convention by the RedHat distribution. Gerald.Kasner@Physik.Uni-Magdeburg.de