From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Q: gcc -c does NOT compile Ada code?
Date: 1998/05/01
Date: 1998-05-01T00:00:00+00:00 [thread overview]
Message-ID: <x7v7m46imud.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: 3548DED4.317769F@pineapple.apmaths.uwo.ca
Geb <geb@pineapple.apmaths.uwo.ca> writes:
> I'm new to this group. I was trying to compile Ada code using
> GNAT (latest 3.10?) installed on my Linux machine.
> According to GNAT's docs, gnat is built on gcc. However,
> I found the gcc (2.7.21) that comes with the Slackware Linux
> doesn't seem to recognize the file format with gcc -c myada.adb.
> So I guess I may need to rebuild the gcc on myown?
2.7.2.1, I think.
You _may_ need some sleight of hand to get all the compilers working
properly, but -- at a guess -- are you trying to use the gcc command
to link? use gnatmake instead. eg,
gcc -c foo.adb # ok, but to start with just ..
gnatmake foo # ok
gcc foo.adb # not ok, Ada needs much more work behind the scenes
next prev parent reply other threads:[~1998-05-01 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-30 0:00 Q: gcc -c does NOT compile Ada code? Geb
1998-05-01 0:00 ` Simon Wright [this message]
1998-05-04 0:00 ` Scott Ingram
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox