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,9a677188cc05d84b X-Google-Attributes: gid103376,public X-Google-Thread: f9b51,9a677188cc05d84b X-Google-Attributes: gidf9b51,public From: Simon Wright Subject: Re: Q: gcc -c does NOT compile Ada code? Date: 1998/05/01 Message-ID: #1/1 X-Deja-AN: 349535975 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: <3548DED4.317769F@pineapple.apmaths.uwo.ca> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 894092337 nnrp-11:26209 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada,comp.os.linux.setup Date: 1998-05-01T00:00:00+00:00 List-Id: Geb 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