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,ad829d3ec11d6354 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!j33g2000cwa.googlegroups.com!not-for-mail From: "Gerd" Newsgroups: comp.lang.ada Subject: Re: Problem creating bindings - please help Date: 18 May 2006 05:02:04 -0700 Organization: http://groups.google.com Message-ID: <1147953724.850549.227110@j33g2000cwa.googlegroups.com> References: <1147934783.645893.274580@u72g2000cwu.googlegroups.com> <1147949508.476468.302020@j73g2000cwa.googlegroups.com> <1147951449.361205.317700@i40g2000cwc.googlegroups.com> NNTP-Posting-Host: 62.159.113.204 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1147953730 30139 127.0.0.1 (18 May 2006 12:02:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 18 May 2006 12:02:10 +0000 (UTC) In-Reply-To: <1147951449.361205.317700@i40g2000cwc.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j33g2000cwa.googlegroups.com; posting-host=62.159.113.204; posting-account=_FaVAg0AAAAYUPoPAQYNRFF35JBHf9i7 Xref: g2news2.google.com comp.lang.ada:4295 Date: 2006-05-18T05:02:04-07:00 List-Id: christoph.grein@eurocopter.com schrieb: > Gerd wrote: > > > > The GNAT Users Guide say that the "_" and the "@16" is appended > > automatically for "__stdcall" (as far as I understood). And the > > function is declared as "__stdcall" in the header-file. > > External_Name and Link_Name in pragma Import are optional. But if you > provide them, they must be exact (AFAICS). No. The Users guide say the "@nn" is always added, the "_" can be dropped by specifying a link name, but is added if not specified in external name.