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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3b1dc900b290de94 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Interfacing with C Date: 1999/09/22 Message-ID: <7sb3e7$is2$1@nnrp1.deja.com>#1/1 X-Deja-AN: 528118791 References: <7rtlav$bm7$1@nnrp1.deja.com> <37e2b0e7.0@news.pacifier.com> <7s9nke$m2o@dfw-ixnews15.ix.netcom.com> X-Http-Proxy: 1.0 x22.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed Sep 22 17:25:43 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-09-22T00:00:00+00:00 List-Id: In article <7s9nke$m2o@dfw-ixnews15.ix.netcom.com>, Richard D Riehle wrote: > We have a client who needs to interface to C++. Has anyone completed a reliable > package that corresponds to the Interfaces.C for C++? At present, they are using That's not really doable unless the Ada compiler is coded with knowledge of the name-mangling algorithm that the C++ compiler uses (which is *not* in the standard, and thus is subject to change every time the C++ compiler is revised). If you are using gcc and Gnat you may be in luck, but I'm unaware of any other compiler that can deal with this. I believe the usual technique is to use the C++ C interface features in the C++ code (eg: extern "C"), and Ada's C interface features in the Ada code. -- T.E.D. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.