From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
To: "comp.lang.ada mail to news gateway" <comp.lang.ada@ada.eu.org>
Cc: sicon@hotmail.com
Subject: Re: Help on import a dll in ada, thx ^_^
Date: Mon, 20 Jan 2003 05:52:30 -0600
Date: 2003-01-20T05:52:30-06:00 [thread overview]
Message-ID: <mailman.1.1043063566.12836.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 9e215188a6ce0808facb25c26081023a.110780@mygate.mailgate.org
You didn't specify which Ada compiler you're using, so it's impossible
to answer your question definitively.
If you're using gnat-3.15p, you need to follow the instructions given in
section 25.7 of the GNAT User Guide.
----- Original Message -----
From: "Sim Con" <sicon@hotmail.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: January 20, 2003 4:49 AM
Subject: Help on import a dll in ada, thx ^_^
> Hello! I have this problem: i'd like to use a dll of mine in ada, but i
> don't know the right procedure. I make a .ads with the bindings
> (example:
>
> package DLCBIND is
>
> pragma LINKER_OPTIONS ("-ldlcman");
>
> function INITIALIZE (
> MACADDRESS : INTERFACES.C.CHAR_ARRAY;
> REMOTESAP : INTERFACES.C.INT;
> LOCALSAP : INTERFACES.C.INT )
> return INTERFACES.C.INT;
> pragma IMPORT(STDCALL,INITIALIZE,"initialize");
> ...
>
> )
>
> where dlcman is the name of the .dll and .lib (in the same directory of
> the sources .ads and the .adb test file) and the initialize function is
> one exported by the dll (build in vc++). All compile fine but the test
> adb file in which i call the functions, i receive an undefined reference
> to initialiaze. Any help? thanx in advance ^_^
>
>
> --
> Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>
>
next prev parent reply other threads:[~2003-01-20 11:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-20 10:49 Help on import a dll in ada, thx ^_^ Sim Con
2003-01-20 11:52 ` David C. Hoos, Sr. [this message]
2003-01-22 14:43 ` Sim Con
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox