From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Problem creating bindings - please help
Date: Thu, 18 May 2006 14:15:30 +0200
Date: 2006-05-18T14:15:23+02:00 [thread overview]
Message-ID: <446c655a$0$4497$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <1147953724.850549.227110@j33g2000cwa.googlegroups.com>
Gerd wrote:
> 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.
>
FWIW, using ObjectAda and Windows function names it's the same,
the external name of the function must be given without underscore
and @suffix.
Using gcc on Windows I get the same linker error when I try to "just"
refer to a windows function in a simple C program.
next prev parent reply other threads:[~2006-05-18 12:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-18 6:46 Problem creating bindings - please help Gerd
2006-05-18 7:57 ` Dmitry A. Kazakov
2006-05-18 10:51 ` Gerd
2006-05-18 11:24 ` christoph.grein
2006-05-18 12:02 ` Gerd
2006-05-18 12:15 ` Georg Bauhaus [this message]
2006-05-18 12:32 ` Dmitry A. Kazakov
2006-05-19 8:30 ` Gerd
2006-05-19 3:25 ` Steve
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox