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: 103376,fe1dc0666af8f6a6 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!x13g2000yqf.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Creating mixed language static libraries with gpr files? Date: Tue, 3 Mar 2009 07:35:38 -0800 (PST) Organization: http://groups.google.com Message-ID: <3330c3ce-7d77-4131-ae71-26f2bc77fc7e@x13g2000yqf.googlegroups.com> References: <714vb1Fj2e75U1@mid.individual.net> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1236094538 18897 127.0.0.1 (3 Mar 2009 15:35:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 3 Mar 2009 15:35:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x13g2000yqf.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.0.6) Gecko/2009011913 Firefox/3.0.6,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4871 Date: 2009-03-03T07:35:38-08:00 List-Id: Alex R. Mosteo wrote: > Markus Schoepflin wrote: > > Ludovic Brenta wrote: > > >> Markus Schoepflin wrote on comp.lang.ada: > > >>> Using gcc 4.3.3, I'm trying to create a static library that contains > >>> both object files created from Ada and C. > > > [...] > > >> Off the top of my head, this requires that you use gprmake instead of > >> gnatmake. gprmake is part of GPS; if you have GPS on your system, then > >> maybe you have gprmake too. If you don't have it, you can still use a > >> Makefile to complement your project file. You can easily add an object > >> file to an existing static library with "ar rt libLIBRARY.a > >> object_file_produced_from_c.o". > > > Thank you for your answer. > > > gprmake seems pretty undocumented, but I found the documentation for > > something called gprbuild which looks like it would be up to the job. > > > As I don't use GPS, I will probably take the Makefile route. > > I suspect that gprbuild is supposed to obsolete gprmake. Sometime ago I > tried to find some info on this but couldn't arrive at anything definite. For > sure gprmake existed prior to gprbuild, and some bugs in gprmake are no > longer in gprbuild. > > I'm building somewhat complex executables with a mix of Ada/C/C++ with > gprbuild with zero problems, so I expect you'll be lucky too. The author Vincent Celier did a presentation of GPRBuild at FOSDEM 2009; the slides are online. AFAIU, GPRBuild is currently available only to paying customers. It will be part of GNAT GPL 2009 Edition for the general public. -- Ludovic Brenta.