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 Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-stu1.dfn.de!news.belwue.de!news.informatik.uni-stuttgart.de!not-for-mail From: Stefan Bellon Newsgroups: comp.lang.ada Subject: Re: Multiple shared libraries with a single spec Date: Sat, 5 Nov 2005 17:00:54 +0100 Organization: Bauhaus Software Technologies Message-ID: <20051105170054.6bb645da@pscube.informatik.uni-stuttgart.de> References: <1131107328.981560.222350@g43g2000cwa.googlegroups.com> <1131119582.929654.323550@f14g2000cwb.googlegroups.com> <1131191095.053777.140450@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: pscube.informatik.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: inf2.informatik.uni-stuttgart.de 1131206454 22389 129.69.217.201 (5 Nov 2005 16:00:54 GMT) X-Complaints-To: usenet@news.informatik.uni-stuttgart.de NNTP-Posting-Date: 5 Nov 2005 16:00:54 GMT X-Newsreader: Sylpheed-Claws 1.9.14 (GTK+ 2.6.10; i486-pc-linux-gnu) Xref: g2news1.google.com comp.lang.ada:6242 Date: 2005-11-05T16:00:54+00:00 List-Id: 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/ ;-) --=20 Dipl.-Inf. Stefan Bellon Bauhaus Software Technologies | TTI GmbH TGZ Softwareanalysen c/o ISTE Tel.: +49 711 78 16 221 | Universit=E4tsstra=DFe 38 Fax.: +49 711 78 16 380 | 70569 Stuttgart