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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Ada and C++ in the same binary, was: Re: Current status of Ada development for an Android target ? Date: Sun, 19 Jun 2016 14:50:29 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <623218455.487799273.877639.laguest-archeia.com@nntp.aioe.org> <1277310445.487966038.242735.laguest-archeia.com@nntp.aioe.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Sun, 19 Jun 2016 14:50:29 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="d44af18d7d1cdc69cde215431b4ac8ce"; logging-data="7132"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182LXetxnq74ovXcFMfVjawc4ljAk4NsV8=" User-Agent: slrn/0.9.9p1 (Linux) Cancel-Lock: sha1:BtStIbYwXM57VQsQW/jkyLGkRkM= Xref: news.eternal-september.org comp.lang.ada:30809 Date: 2016-06-19T14:50:29+00:00 List-Id: On 2016-06-18, Luke A Guest wrote: > Simon Clubley wrote: > >> The problem is that I don't have any experience combining C++ and Ada >> code in the same binary; in the past, I've only ever called plain C code >> from Ada. > > Depends how you do it. It's tricky. You could use g++ as a generator but > you need to massage it by hand to get it to work. You could wrap the > classes by hand and flatten the API out to a bunch of C functions. > [snip] Thanks for the ideas Luke; I've now pulled down the svn copy of wxAda. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world