From: Per Sandberg <per.sandberg@bredband.net>
Subject: Re: Calling a DLL from GNAT
Date: Tue, 20 Dec 2005 21:37:04 +0100
Date: 2005-12-20T21:37:04+01:00 [thread overview]
Message-ID: <3XZpf.18169$524.18055@newsfe02.ams> (raw)
In-Reply-To: <1134999550.178141.213620@g44g2000cwa.googlegroups.com>
If you are using .gpr files and a farly new GNAT then it may be possible
to do it this way
project externallib is
for Source_Dirs use ();
for Library_Dir use "relative path to dll from project file"
for Library_Name use "what ever the basename of the dll is";
for library_kind use "dynamic";
end externallib;
with "externallib";
project the_proj is
end the_proj;
It is all well described in
"http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Stand_002dalone-Library-Projects.html#Stand_002dalone-Library-Projects"
the GNAT users guide covering library projects.
/Per
markp wrote:
> I am going to be provided a DLL of C functions that I need to interface
> with in GNAT. I know how to call C functions from Ada. However, I'm not
> sure how to link the DLL in with the Ada source code under the GPS
> environment. Could anyone assist in this?
>
> Thank you.
>
prev parent reply other threads:[~2005-12-20 20:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-19 13:39 Calling a DLL from GNAT markp
2005-12-20 13:39 ` Gene
2005-12-20 20:37 ` Per Sandberg [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