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> From: Stephen Leake Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:N1N/3hxMwDqaBZpJSwGUQmE58u4= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 05 Nov 2005 10:47:20 -0500 NNTP-Posting-Host: 66.159.65.1 X-Complaints-To: abuse@toad.net X-Trace: news.abs.net 1131205653 66.159.65.1 (Sat, 05 Nov 2005 10:47:33 EST) NNTP-Posting-Date: Sat, 05 Nov 2005 10:47:33 EST Xref: g2news1.google.com comp.lang.ada:6241 Date: 2005-11-05T10:47:20-05:00 List-Id: "Martin Krischik" writes: > Am 05.11.2005, 13:44 Uhr, schrieb Lucretia : > >>> > Hmmm, haven't used project files yet. >>> >>> They are very nice. For example, they make it easy to specify compiler >>> options on a per-file basis (which I use to work around compiler bugs >>> :). >> I'll look into it. Can they be used for mixed language programming? I'm >> using makefiles for wxAda a the moment. > > 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 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. 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. -- -- Stephe