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,4cabfb8e49247533 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news.abs.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Multiple shared libraries with a single spec References: <1131107328.981560.222350@g43g2000cwa.googlegroups.com> <1131119582.929654.323550@f14g2000cwb.googlegroups.com> <1131191095.053777.140450@z14g2000cwz.googlegroups.com> <20051105170054.6bb645da@pscube.informatik.uni-stuttgart.de> From: Stephen Leake Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:EOxn81sjqZMhPEcjAj5fLIWajsQ= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 06 Nov 2005 06:57:53 -0500 NNTP-Posting-Host: 66.159.65.1 X-Complaints-To: abuse@toad.net X-Trace: news.abs.net 1131278287 66.159.65.1 (Sun, 06 Nov 2005 06:58:07 EST) NNTP-Posting-Date: Sun, 06 Nov 2005 06:58:07 EST Xref: g2news1.google.com comp.lang.ada:6251 Date: 2005-11-06T06:57:53-05:00 List-Id: Stefan Bellon 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