comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@acm.org>
Subject: Re: Multiple shared libraries with a single spec
Date: Sun, 06 Nov 2005 06:57:53 -0500
Date: 2005-11-06T06:57:53-05:00	[thread overview]
Message-ID: <u64r656pq.fsf@acm.org> (raw)
In-Reply-To: 20051105170054.6bb645da@pscube.informatik.uni-stuttgart.de

Stefan Bellon <bellon@bauhaus-tec.com> writes:

> 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";

Please use ".hpp" for headers; then Emacs and other editors can know
what language you are using!

>    
>    end Naming;
>
> But apart from that, C++ should work fine as well.

Ok, good to know.


> 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");

Ok. I see "Main_Language" is in the GNAT Reference Manual, although it
does not give the list of supported languages (SmallTalk? :).
I guess it's time I sat down and read the whole thing again :).

>> 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/
>
> ;-)

No, it's not "beta"; it's included in the supported release.

-- 
-- Stephe



  reply	other threads:[~2005-11-06 11:57 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
2005-11-06 11:57               ` Stephen Leake [this message]
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