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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,51114679936bf41a,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news.glorb.com!proxad.net!cleanfeed3-a.proxad.net!nnrp8-1.free.fr!not-for-mail From: Yves Bailly Subject: Calling C++ from Ada Date: Sat, 13 May 2006 16:48:39 +0200 User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) Message-Id: Newsgroups: comp.lang.ada MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Organization: Guest of ProXad - France NNTP-Posting-Date: 13 May 2006 16:48:49 MEST NNTP-Posting-Host: 81.56.171.53 X-Trace: 1147531729 nnrp8-1.free.fr 8011 81.56.171.53:60337 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:4229 Date: 2006-05-13T16:48:49+02:00 List-Id: Hello all, I'm trying to use C++ classes from an Ada program. Searching around, I found some examples, but none implying a non-default constructor. I tried some advices found in http://www.pegasoft.ca/resources/boblap/19.html#19.5, which work well, but it seems one can only use default constructors. Using various versions of GNAT (including the one coming with the latest GCC 4.2.0), when trying to use the pragma CPP_Constructor with a function taking more than zero parameters, I get this message : imported.ads:36:27: non-default constructors not implemented Does anyone have any clue about this ? Thanks and best regards, Yves Bailly