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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d0fcd3db00d6036 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-02 11:56:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3D9B4176.3020606@acm.org> From: Jeffrey Carter User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: "extern" procedure in ada References: <3D9A50DB.9050804@acm.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 02 Oct 2002 18:56:57 GMT NNTP-Posting-Host: 63.184.9.170 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1033585017 63.184.9.170 (Wed, 02 Oct 2002 11:56:57 PDT) NNTP-Posting-Date: Wed, 02 Oct 2002 11:56:57 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:29470 Date: 2002-10-02T18:56:57+00:00 List-Id: Bernard Azria wrote: > "Jeffrey Carter" wrote in message > >>If you have contact with the people writing the library, get a >>specification file from them, with the package, and call it normally. >>That's the easiest, simplest, and safest way to do this. You should only >>try another approach if you absolutely have to. >> >> > > I have tried to use the spec file of the procedure i am calling in the > library, but the problem is when linking the object files, because this spec > file needs a body file ... > Using spec files twice also gives warning of "multiply defined", but it > seems > we can live with that ... > May be is there a Gnat compilation option, that can used object files of the > spec > files I am "withing", instead of the source files ? With GNAT, you need the spec, the read-only .ali file, and the object file. When the .ali file is read only, GNAT won't worry about whether it has a body or do any checking to see if it needs recompilation. -- Jeff Carter "This trial is a travesty. It's a travesty of a mockery of a sham of a mockery of a travesty of two mockeries of a sham. ... Do you realize there's not a single homosexual on that jury?" Bananas