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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2779a2b15c136a60 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-20 03:52:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!teaser.fr!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: Help on import a dll in ada, thx ^_^ Date: Mon, 20 Jan 2003 05:52:30 -0600 Organization: ENST, France Message-ID: References: <9e215188a6ce0808facb25c26081023a.110780@mygate.mailgate.org> Reply-To: "comp.lang.ada mail to news gateway" NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1043063567 68639 137.194.161.2 (20 Jan 2003 11:52:47 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 20 Jan 2003 11:52:47 +0000 (UTC) Cc: sicon@hotmail.com To: "comp.lang.ada mail to news gateway" Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:33234 Date: 2003-01-20T05:52:30-06:00 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" Newsgroups: comp.lang.ada To: 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 > >