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,19a56ccd5d516d4 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Accessing C++ Date: 1995/04/19 Message-ID: #1/1 X-Deja-AN: 101283311 references: <3n2su7$deh@ubszh.fh.zh.ubs.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1995-04-19T00:00:00+00:00 List-Id: Mixing Ada and C++ is not trivial, and certainly you should not expect it to work without interacting with the Ada vendor to determine how it should be done. Both Ada and C++ need to own the world (to deal with initialization and finalization), and this may well cause difficulties. In general I would expect it to be difficult unless the Ada vendor has specifically taken steps to make it work (or the C++ vendor :-) I assume you are wrapping the C++ stuff in C, since obviously it won't work to call it directly unless the Ada compiler knows a lot about the C++ compiler including its name crunching algorithm. GNAT interfaces quite smoothly with C++, but this did not happen accidentally, it took quite a bit of design, technical work, and fiddling!