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!news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!feeder.erje.net!news.osn.de!diablo1.news.osn.de!noris.net!nntp.ilk.net!not-for-mail From: Markus Schoepflin Newsgroups: comp.lang.ada Subject: Re: Creating mixed language static libraries with gpr files? Date: Tue, 03 Mar 2009 15:49:35 +0100 Organization: Customer of ILK Internet GmbH, Karlsruhe, Germany Message-ID: References: NNTP-Posting-Host: csdc.comsoft.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nntp.ilk.net 1236091775 16993 212.86.205.70 (3 Mar 2009 14:49:35 GMT) X-Complaints-To: usenet@ilk.net NNTP-Posting-Date: Tue, 3 Mar 2009 14:49:35 +0000 (UTC) User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:4867 Date: 2009-03-03T15:49:35+01:00 List-Id: 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. Markus