comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Creating mixed language static libraries with gpr files?
Date: Tue, 3 Mar 2009 07:35:38 -0800 (PST)
Date: 2009-03-03T07:35:38-08:00	[thread overview]
Message-ID: <3330c3ce-7d77-4131-ae71-26f2bc77fc7e@x13g2000yqf.googlegroups.com> (raw)
In-Reply-To: 714vb1Fj2e75U1@mid.individual.net

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.



  reply	other threads:[~2009-03-03 15:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03  9:58 Creating mixed language static libraries with gpr files? Markus Schoepflin
2009-03-03 12:07 ` Ludovic Brenta
2009-03-03 14:49   ` Markus Schoepflin
2009-03-03 15:06     ` Alex R. Mosteo
2009-03-03 15:35       ` Ludovic Brenta [this message]
2009-03-03 20:57         ` sjw
2009-03-04 10:55           ` Ludovic Brenta
2009-03-04 19:34             ` sjw
2009-03-04 19:44               ` Ludovic Brenta
2009-03-03 15:14     ` britt.snodgrass
2009-03-03 18:29   ` Ludovic Brenta
2009-03-03 18:21 ` anon
2009-03-04  8:37   ` Markus Schoepflin
2009-03-04 16:05     ` Robert A Duff
2009-03-04  8:41 ` Vadim Godunko
2009-03-04 16:58   ` anhvofrcaus
2009-03-04 18:10     ` Ludovic Brenta
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox