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!g10g2000cwb.googlegroups.com!not-for-mail From: "Gerd" Newsgroups: comp.lang.ada Subject: Re: Problem creating bindings - please help Date: 19 May 2006 01:30:57 -0700 Organization: http://groups.google.com Message-ID: <1148027457.244973.210840@g10g2000cwb.googlegroups.com> References: <1147934783.645893.274580@u72g2000cwu.googlegroups.com> <1147949508.476468.302020@j73g2000cwa.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 1148027463 27698 127.0.0.1 (19 May 2006 08:31:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 19 May 2006 08:31:03 +0000 (UTC) In-Reply-To: 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: g10g2000cwb.googlegroups.com; posting-host=62.159.113.204; posting-account=_FaVAg0AAAAYUPoPAQYNRFF35JBHf9i7 Xref: g2news2.google.com comp.lang.ada:4302 Date: 2006-05-19T01:30:57-07:00 List-Id: I've found the reason. It seems to be a bug in GNAT (3.15p). It depends on the underscore "_" in the external name. If the external function has a name xyz then everything works fine, but if the name contains an "_" line x_z, link reports an error. I've patched the .lib (replace "_" by "X") and the .exe (replace "X" back to "_") and now it works. But that's not a nice method. Does anyone know how Aonix behaves in this case (function name in dll contains underscore)? Gerd