comp.lang.ada
 help / color / mirror / Atom feed
From: Stefan Bellon <bellon@bauhaus-tec.com>
Subject: Re: Multiple shared libraries with a single spec
Date: Sat, 5 Nov 2005 17:00:54 +0100
Date: 2005-11-05T16:00:54+00:00	[thread overview]
Message-ID: <20051105170054.6bb645da@pscube.informatik.uni-stuttgart.de> (raw)
In-Reply-To: u3bmb6qrb.fsf@acm.org

Stephen Leake wrote:

> GNAT GPL 2005 provides 'gprmake', which you run instead of gnatmake.
> You can then add C (not C++, I think) files

It works for C++ files as well. I think early versions of gprmake
needed the following package Naming specified inside the project file:

   package Naming is
      for Implementation_Suffix ("C++") use ".cpp";
      for Specification_Suffix ("C++") use ".h";
   end Naming;

But apart from that, C++ should work fine as well.

> (that is, directories
> containing *.c files) to your GNAT project files, and gprmake compiles
> the C code into a library, then calls gnatmake to build the Ada main,

You can even have the "main" in a language like C or C++:

   for Languages use ("Ada", "C", "C++");
   for Main_Language use "C++";
   for Main use ("main.cpp");

> automatically linking in the C library. Very convenient.

Yes, I completely agree.

> However, 'gprmake' does not appear in the "super secret" GNAT
> documentation, so I guess it qualifies as "top secret" :). GPS may use
> it transparently; I don't use GPS.

s/top secret/beta/

;-)

-- 
Dipl.-Inf. Stefan Bellon
Bauhaus Software Technologies | TTI GmbH TGZ Softwareanalysen c/o ISTE
Tel.: +49 711 78 16 221       | Universitätsstraße 38
Fax.: +49 711 78 16 380       | 70569 Stuttgart



  reply	other threads:[~2005-11-05 16:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-04 12:28 Multiple shared libraries with a single spec Lucretia
2005-11-04 12:56 ` Niklas Holsti
2005-11-04 13:03   ` Lucretia
2005-11-04 13:22     ` Niklas Holsti
2005-11-04 15:43       ` Lucretia
2005-11-04 16:31         ` Pascal Obry
2005-11-04 17:36         ` Martin Krischik
2005-11-04 17:31       ` Martin Krischik
2005-11-04 21:55         ` Niklas Holsti
2005-11-04 13:04   ` Lucretia
2005-11-04 14:09 ` Stephen Leake
2005-11-04 15:53   ` Lucretia
2005-11-04 17:34     ` Martin Krischik
2005-11-05 10:41     ` Stephen Leake
2005-11-05 11:44       ` Lucretia
2005-11-05 14:17         ` Martin Krischik
2005-11-05 15:47           ` Stephen Leake
2005-11-05 16:00             ` Stefan Bellon [this message]
2005-11-06 11:57               ` Stephen Leake
2005-11-06 12:33                 ` Stefan Bellon
2005-11-07 17:30             ` Lucretia
2005-11-07 23:42               ` Stephen Leake
2005-11-08  6:31               ` Stefan Bellon
2005-11-05 14:12       ` Martin Krischik
2005-11-05 14:22         ` Pascal Obry
2005-11-07 14:12           ` Frank J. Lhota
2005-11-07 17:31             ` Pascal Obry
replies disabled

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