comp.lang.ada
 help / color / mirror / Atom feed
From: "Sergey Koshcheyev" <serko84@hotmail.com>
Subject: Re: Help with GNAT, WinNT, StdCall, dll, exported names
Date: Thu, 11 Oct 2001 19:59:09 +0200
Date: 2001-10-11T19:59:09+02:00	[thread overview]
Message-ID: <9q4mp3$idk$1@ns.felk.cvut.cz> (raw)
In-Reply-To: %lfx7.6$_o6.503@newsc.telia.net

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 684 bytes --]


"Peter Hend�n" <phenden@tdab.com> wrote in message
news:%lfx7.6$_o6.503@newsc.telia.net...
> <snip>
> When I try to declare it StdCall instead of C, I am
> not able to link it. Whatever I put in the .DEF file
> it comes out wrong. I get from the last gnatlink step
> in gnatdll:
>
> mydll.exp(.edata+0x34):fake: undefined reference to `Foobar'

Have you tried specifying the link name in the pragma? Something like this:
  pragma Export (Stdcall, Foobar, "Foobar", Link_Name => "Foobar");
may work (not tested).

> <snip>
> --
> Peter Hend�n           http://www.algonet.se/~phenden
> ICQ: 14672398
> Teknisk Dokumentation AB          http://www.tdab.com

Sergey Koshcheyev.





      parent reply	other threads:[~2001-10-11 17:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-11 11:26 Help with GNAT, WinNT, StdCall, dll, exported names Peter Hend�n
2001-10-11 11:44 ` David Botton
2001-10-11 16:06   ` Peter Hend�n
2001-10-11 19:03     ` David Botton
2001-10-11 13:28 ` Stephen Leake
2001-10-11 16:23   ` Peter Hend�n
2001-10-11 19:24   ` David Botton
2001-10-11 23:28     ` Peter Hend�n
2001-10-11 23:46       ` David Botton
2001-10-12  9:48         ` Peter Hend�n
2001-10-11 17:59 ` Sergey Koshcheyev [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox