comp.lang.ada
 help / color / mirror / Atom feed
From: labtek@cs.yale.edu (Tom Griest)
Subject: Re: gnat3.04a1 on Win95: linking a DLL
Date: 1996/08/25
Date: 1996-08-25T00:00:00+00:00	[thread overview]
Message-ID: <4vqsgtINNaiu@RA.DEPT.CS.YALE.EDU> (raw)
In-Reply-To: westley-2408962314170001@eppp72.buffnet.net


westley@buffnet.net (Terry J. Westley) writes:
>Newbie on Windows 95 searching for info on how to "link" a GNAT Ada program
>with a DLL.  Actually, I want to know how to tell the linker NOT to attempt
>to resolve a reference to a symbol I know to be in the DLL.

The linker must resolve dynamically linked objects to a dll
entry point.  Linking with a DLL is done in an almost transparent way.
You simply link with the existing .lib file.  Now if what you mean
is making a binding to an existing library, then you can
use pragma Import.  Use C as the calling convention unless
the calling convention is STDCALL in which case use stdcall.
Also, note that for DLL data you should use stdcall to insure
indirect references are generated.

-Tom
LabTek Corp.




  reply	other threads:[~1996-08-25  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-25  0:00 gnat3.04a1 on Win95: linking a DLL Terry J. Westley
1996-08-25  0:00 ` Tom Griest [this message]
1996-08-26  0:00 ` Ted Dennison
replies disabled

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