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=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8fec429719a29bf9 X-Google-Attributes: gid103376,public From: kls@icf.hrb.com (Ken Slater) Subject: Re: Interface between ADA and C++ Date: 1996/05/29 Message-ID: <1996May29.083850.24678@hrbicf>#1/1 X-Deja-AN: 157348242 references: <31A2C469.41C6@essiris2.atlas.de> <4o4h0p$l32@hacgate2.hac.com> organization: HRB Systems, Inc. newsgroups: comp.lang.ada Date: 1996-05-29T00:00:00+00:00 List-Id: In article <4o4h0p$l32@hacgate2.hac.com>, Darren C Davenport writes: > Mike Young wrote: >>As for guessing and using the decorated name: this is generally not a good >>idea. It's a pain in the behind, for one, not portable, for two, and extern >>C takes care of all this, for three. >> >>Mike. > > However, GNAT does have the ability to interface with C++, including > deriving classes, and you can not use that capability if you use extern. > You do need to know the mangled name to use this feature. > > Darren > I have just started using GNAT on a Silicon Graphics Indy workstation and was also wondering how easy it was to interface to C++. Do you use pragmas? Is there any sample code showing how this is done? Is it dependent on the C++ compiler used (i.e. must you use gcc)? Thanks.