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: A Schoepel Subject: Re: Getting GNAT Ada DLL to work with MSVC++? Date: 2000/02/10 Message-ID: <38A30494.2AA6D826@mail.earthlink.net>#1/1 X-Deja-AN: 584224496 Content-Transfer-Encoding: 7bit References: <38A24D1B.109879BA@mail.earthlink.net> X-Accept-Language: en,es-MX Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-la.pbi.net 950211045 63.198.146.83 (Thu, 10 Feb 2000 11:30:45 PST) Organization: SBC Internet Services MIME-Version: 1.0 NNTP-Posting-Date: Thu, 10 Feb 2000 11:30:45 PST Newsgroups: comp.lang.ada Date: 2000-02-10T00:00:00+00:00 List-Id: I looked up and applied the example you pointed out. The DLL links now (thanks!), but my entire program exits when the DLL is called. Heard of anything like that? Of course the function I am linking in to is not a simple text string I/O thing either. David Botton wrote: > * 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 > >