From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2779a2b15c136a60,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-20 02:49:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!mygate.mailgate.org!194.185.74.204!not-for-mail From: "Sim Con" Newsgroups: comp.lang.ada Subject: Help on import a dll in ada, thx ^_^ Date: Mon, 20 Jan 2003 10:49:35 +0000 (UTC) Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: <9e215188a6ce0808facb25c26081023a.110780@mygate.mailgate.org> NNTP-Posting-Host: 194.185.74.204 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.mailgate.org 1043046361 28118 194.185.74.204 (Mon Jan 20 11:49:35 2003) X-Complaints-To: abuse@mailgate.org NNTP-Posting-Date: Mon, 20 Jan 2003 10:49:35 +0000 (UTC) Injector-Info: news.mailgate.org; posting-host=194.185.74.204; posting-account=110780; posting-date=1043046361 User-Agent: Mailgate Web Server X-URL: http://mygate.mailgate.org/mynews/comp/comp.lang.ada/9e215188a6ce0808facb25c26081023a.110780%40mygate.mailgate.org Xref: archiver1.google.com comp.lang.ada:33232 Date: 2003-01-20T10:49:35+00:00 List-Id: 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