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,b9ae8898567dfc82 X-Google-Attributes: gid103376,public From: "David Botton" Subject: Re: Ada C++ interface Date: 1999/07/12 Message-ID: <7me7m2$teo$1@news.gate.net>#1/1 X-Deja-AN: 500349557 References: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 X-Complaints-To: abuse@gate.net X-Trace: news.gate.net 931832322 30168 199.227.148.28 (13 Jul 1999 02:18:42 GMT) Organization: CyberGate, Inc. NNTP-Posting-Date: 13 Jul 1999 02:18:42 GMT Newsgroups: comp.lang.ada Date: 1999-07-13T02:18:42+00:00 List-Id: Since you are trying to use Ada from C++ make sure that you wrap all the C prototypes for Ada with an extern "C" block. There are two examples of creating DLLs with GNAT on AdaPower.com one of which also demonstrates how to use Ada functions from C. Take a look at: * Using GNAT Dlls from C (van Dijk & Marceau) * Create DLLs with GNAT (Derks) In the articles section at http://www.adapower.com David Botton Martin wrote in message ... >I'm quite new in Ada programming and I have been tasked with the job to >make a C++ interface to an existing package/library programmed in Ada >95. > >I've got Gnat 3.11 downloaded from the net and we are using Borland C++ >Builder for the user interface and we are using Windows NT. I've >finished som wrapping code in Ada and C++ testing on Sun Solaris and are >now trying to integrate this with a Borland C++ Builder user interface >on Windows NT. > >First I tried to just compile and link this together but the Borland >linker does not like Gnat objects and the Gnat linker does not like >Borland objects. Next step could be to compile the Ada into a DLL that >I could use from the Borland code: >Do you know how to do that with the Gnat compiler? >or do you have any other tip? > >Thank you, > >Martin Myran > >