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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c1bdceb867926fdb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!j30g2000vbr.googlegroups.com!not-for-mail From: Ada novice Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with C Date: Tue, 27 Jul 2010 11:40:21 -0700 (PDT) Organization: http://groups.google.com Message-ID: <29543bcb-7589-410d-bcb4-dcb662f8b12b@j30g2000vbr.googlegroups.com> References: <0ee9eec7-6024-4fb8-8df0-f65c146e4b84@i28g2000yqa.googlegroups.com> <143ef70b-7e74-426b-a621-a5fd157849be@x21g2000yqa.googlegroups.com> <18zszx6sjlloa$.k5nohxp9k27i$.dlg@40tude.net> <91c174e6-c359-4bf5-b284-d93a725ad09d@c10g2000yqi.googlegroups.com> <0dadd6b6-452d-43e9-b0b9-374b5106b298@t2g2000yqe.googlegroups.com> <4acf7f59-2675-4498-8d95-35d01bc1e3af@j8g2000yqd.googlegroups.com> <1vcstpdax6vxp$.1umnj0p2l8a32$.dlg@40tude.net> <6cb2de3c-5909-4ca4-973e-e1140170cd19@w4g2000vbh.googlegroups.com> NNTP-Posting-Host: 193.11.22.91 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1280256022 13269 127.0.0.1 (27 Jul 2010 18:40:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 27 Jul 2010 18:40:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j30g2000vbr.googlegroups.com; posting-host=193.11.22.91; posting-account=Rr9I-QoAAACS-nOzpA-mGxtAlZ46Nb6I User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12614 Date: 2010-07-27T11:40:21-07:00 List-Id: On Jul 27, 9:27=A0am, "Dmitry A. Kazakov" wrote: > On Mon, 26 Jul 2010 22:50:48 -0700 (PDT), Ada novice wrote: > > On Jul 25, 7:06=A0pm, "Dmitry A. Kazakov" > > wrote: > > >> With C files you do: > > >> gcc -c c_file.c > >> gnatmake -c main_ada_file.adb > >> gnatbind main_ada_file.ali > >> gnatlink main_ada_file.ali c_file.o > > > I was wondering if it's possible to do the above in GPS through > > "projects" as we did with the library (where 2 projects were created). > > It would be great if the above could be done within GPS. > > It is possible if you have GPS/gprbuild with multiple languages support: > You specify in your project file: > > =A0 =A0for Languages use ("Ada", "C"); > > (I don't know if GNAT GPL 2010 already includes this. GNAT Pro does and, = I > guess that Debian Linux GNAT does it as well) > Thanks. I think so. In project properties (GPS in GNAT GPL), one can specify languages such as Ada, C..Fortran etc. So I need to test it. Yes, I'll need to llok into the GPRbuild user Guide. YC