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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no 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:50:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!wesley.videotron.net!news.cae.ca!not-for-mail From: "Bernard Azria" Newsgroups: comp.lang.ada Subject: Re: "extern" procedure in ada Date: Wed, 2 Oct 2002 11:13:46 -0400 Organization: CAE Message-ID: References: <3D9A50DB.9050804@acm.org> NNTP-Posting-Host: p3320.cae.ca X-Trace: dns3.cae.ca 1033571628 18573 142.39.94.189 (2 Oct 2002 15:13:48 GMT) X-Complaints-To: usenet@news.cae.ca NNTP-Posting-Date: 2 Oct 2002 15:13:48 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:29469 Date: 2002-10-02T15:13:48+00:00 List-Id: "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 ? Response to Simon: Yes, the library is provided with an elaboration adainit procedure.