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,fcbbb6164185a4a7 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: linking with C++ Date: 1998/04/21 Message-ID: #1/1 X-Deja-AN: 346293833 References: <6hglkj$dlh$1@nyheter.chalmers.se> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 893164178 14012 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-04-21T00:00:00+00:00 List-Id: Martin, I think you have very little chance of succeeding with this attempt at direct interfacing. If you want to pursue this, read carefully the documentation on the special C++ interfacing pragmas in GNAT. These C++ interfacing pragmas are very powerful, and are used for example by SGI to give access to their C++ graphics packages like Inventor. But you really have to know what you are doing to use them. Generally they are intended for use by a binding generator, not by humans. They can be used by humans, but you really need to understand a lot. The easiest thing for most people is to write a C wrapper for their C++ code and to interface to the C wrapper. This can be done using only standard features of the language as described in annex B of the RM. Robert Dewar Ada Core Technologies