comp.lang.ada
 help / color / mirror / Atom feed
* How to use gcc for gnat and C/C++?
@ 1997-07-16  0:00 Charlie Gage
  1997-07-17  0:00 ` Robert Dewar
  1997-07-17  0:00 ` Gerald Kasner
  0 siblings, 2 replies; 3+ messages in thread
From: Charlie Gage @ 1997-07-16  0:00 UTC (permalink / raw)



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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to use gcc for gnat and C/C++?
  1997-07-16  0:00 How to use gcc for gnat and C/C++? Charlie Gage
  1997-07-17  0:00 ` Robert Dewar
@ 1997-07-17  0:00 ` Gerald Kasner
  1 sibling, 0 replies; 3+ messages in thread
From: Gerald Kasner @ 1997-07-17  0:00 UTC (permalink / raw)



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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to use gcc for gnat and C/C++?
  1997-07-16  0:00 How to use gcc for gnat and C/C++? Charlie Gage
@ 1997-07-17  0:00 ` Robert Dewar
  1997-07-17  0:00 ` Gerald Kasner
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Dewar @ 1997-07-17  0:00 UTC (permalink / raw)



Charlie asks

<<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)?
>>

This is the sort of question that is more likely to be answered on the
chat@gnat.com list, which has many people who know about such things.
Subscribe by sending a message to chat-request@gnat.com. This mailing
list chat@gnat.com is specifically for discussion of issues in using
GNAT, not for general Ada discussions.

By the way, the next Linux release will be much more Redhat friendly. We
have decided to standardize on Redhat as the Linux we target. This does
not mean that GNAT cannot be used with other Linux versions, but it will
mean that installation on a Redhat version will be more straightforward.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-07-17  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-16  0:00 How to use gcc for gnat and C/C++? Charlie Gage
1997-07-17  0:00 ` Robert Dewar
1997-07-17  0:00 ` Gerald Kasner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox