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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7c247e5dd8852278 X-Google-Attributes: gid103376,public From: cts@kampong.aedinc.net (Craig Spannring) Subject: Re: Getting GNAT Ada DLL to work with MSVC++? Date: 2000/02/10 Message-ID: #1/1 X-Deja-AN: 584160668 References: <38A24D1B.109879BA@mail.earthlink.net> X-Trace: newsfeed.slurp.net 950200610 208.132.31.130 (Thu, 10 Feb 2000 10:36:50 CDT) NNTP-Posting-Date: Thu, 10 Feb 2000 10:36:50 CDT Newsgroups: comp.lang.ada Date: 2000-02-10T00:00:00+00:00 List-Id: In article <38A24D1B.109879BA@mail.earthlink.net>, A Schoepel wrote: >I've 'successfully' created the DLL in GNAT, have a library >file and DLL file. The Microsoft VC++ compiler gives me an >unresolved external symbol error when I link my C++ code >with the DLL. I'm using CPP convention in the export >pragmas, The CPP convention in gnat (probably) mangles names the same way as g++. MSVC++ probably doesn't. You'll want to export the names with the "C" convention. The function declarations in your C++ header file must specify C linkage as in extern "C" -- ======================================================================= Life is short. | Craig Spannring Bike hard, ski fast. | cts@internetcds.com --------------------------------+------------------------------------