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: "David Botton" Subject: Re: Getting GNAT Ada DLL to work with MSVC++? Date: 2000/02/10 Message-ID: #1/1 X-Deja-AN: 584089258 References: <38A24D1B.109879BA@mail.earthlink.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: admin@usenetserver.com Organization: UseNet Server, Inc. http://www.usenetserver.com - Home of the fastest NNTP servers on the Net. NNTP-Posting-Date: Thu, 10 Feb 2000 07:53:31 EST Newsgroups: comp.lang.ada Date: 2000-02-10T00:00:00+00:00 List-Id: * Creating GNAT Dlls and using them from C (van Dijk & Marceau) http://www.adapower.com/articles/howto-gdllc.html Make sure that you have done an extern "c" {} on all your imports in your C++ code David Botton A Schoepel wrote in message <38A24D1B.109879BA@mail.earthlink.net>... >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, have the correct definitions, identified the import >library in the MSVC++ compiler. All the typical stuff. >What's even weirder is that the Windows environment can find >the DLL's function names when I use QuickView. > >Has anyone successfully linked a GNAT DLL through the MSVC++ >linker? Did you encounter any weirdnesses like this? Have >I missed some linking or binding options in GNAT? Help?! > >Andrew >