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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,7c6bcf9f4b4496b1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!p36g2000vbn.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Ada file depends on C file Date: Thu, 17 Sep 2009 07:49:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <64e357f1-367d-4791-9307-49e8cc678c18@p36g2000vbn.googlegroups.com> References: <87bfc895-8c74-4fe9-86b6-99416006ab65@z34g2000vbl.googlegroups.com> <4205125b-ccae-4ec0-894f-c53976ecca7c@p23g2000vbl.googlegroups.com> <0d986b0b-ec32-4dec-980e-471d210aa6d4@o13g2000vbl.googlegroups.com> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1253198986 9776 127.0.0.1 (17 Sep 2009 14:49:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 17 Sep 2009 14:49:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p36g2000vbn.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8368 Date: 2009-09-17T07:49:46-07:00 List-Id: mockturtle wrote on comp.lang.ada: > On Sep 17, 3:07=A0pm, Ludovic Brenta wrote: >> I normally use a Makefile to compile in such situations but there are >> two alternatives: gprmake and its successor, gprbuild. In GPS, you can >> specify that your project is multi-language; this will cause it to >> call the proper tool (instead of gnatmake, which is for Ada-only > > I did. =A0If I open with an editor the .gpr file created by GPS I find > the line > > =A0 =A0for Languages use ("Ada", "C"); >From memory, this is necessary but not sufficient; you also have to tick a check box somewhere to tell GPS that your project file is multi- language. This is confusing, I know, and I learned the hard way :) -- Ludovic Brenta.