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,3c728f4a9a349f1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-25 05:00:01 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed.vmunix.org!news-mue1.dfn.de!news-nue1.dfn.de!newsfeed.r-kom.de!newsfeed.arcor-online.net!newsread.arcor-online.net!news.arcor.de!not-for-mail Newsgroups: comp.lang.ada Subject: Bindings for DLL with GNAT From: Bernd.Specht@gmx.com (Bernd Specht) Organization: No company Message-ID: User-Agent: Xnews/4.05.03 Date: 25 Mar 2004 12:59:42 GMT NNTP-Posting-Date: 25 Mar 2004 13:59:42 MET NNTP-Posting-Host: 62.153.26.179 X-Trace: DXC=J4`_Hk7B_XRD__2dTlB=E[:ejgIfPPldTjW\KbG]kaMX6cQF3Xka;_Z0:kSd6PdY Hello, I've some trouble with generating bindings for a dll (GNAT on Win2k). I've written a spec containing the definitions and added: pragma import (stdcall, XY, "XY"); Then I generated a import-library as described in gnat_ug. When linking, the linker tells me, it miss a "XY@8". So I added the "@8" in the ".def"-file. Then link works, but at runtime I get a message "XY@8" not found in dll. In fact, the name in the DLL is without "@8" (but the linker expects it). Any ideas? Regards, Bernd