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,FREEMAIL_FROM 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!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail From: "Lucretia" Newsgroups: comp.lang.ada Subject: Re: Multiple shared libraries with a single spec Date: 7 Nov 2005 09:30:30 -0800 Organization: http://groups.google.com Message-ID: <1131384630.408929.252970@g47g2000cwa.googlegroups.com> References: <1131107328.981560.222350@g43g2000cwa.googlegroups.com> <1131119582.929654.323550@f14g2000cwb.googlegroups.com> <1131191095.053777.140450@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 194.74.199.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1131384635 4612 127.0.0.1 (7 Nov 2005 17:30:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 7 Nov 2005 17:30:35 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 Symantec_Web_Security (3.0.1.74), 1.0 C2100-0050414028 (NetCache NetApp/5.5R5) Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=194.74.199.42; posting-account=G-J9fgwAAADgpzBiEyy5tO4f8MX5fbpw Xref: g2news1.google.com comp.lang.ada:6269 Date: 2005-11-07T09:30:30-08:00 List-Id: Stephen Leake wrote: > > Depends on the language you want to mix ;-). C and C++ work fine - > > there is a tool which will generate the needed makefiles for you. > > gpr2make - I am not at home so I can guess the name only C, C++ and Ada > GNAT GPL 2005 provides 'gprmake', which you run instead of gnatmake. > You can then add C (not C++, I think) files (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, > automatically linking in the C library. Very convenient. Is it possible to *not* build a library from the C code as my code is a mixture which is, in it's entirety, built into a single library at the end, the way it should be, in this case! Thanks, Luke.