comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: Interface with C codes
Date: Sun, 19 Oct 2014 10:33:33 -0700 (PDT)
Date: 2014-10-19T10:33:33-07:00	[thread overview]
Message-ID: <4a2314bd-79e4-4a99-a6e6-1fd723aec672@googlegroups.com> (raw)
In-Reply-To: <lylhocb1qe.fsf@pushface.org>

On Sunday, October 19, 2014 6:58:18 AM UTC-7, Simon Wright wrote:
> Brian Drummond <brian3@shapes.demon.co.uk> writes:
> > Use gcc -fdump-ada-spec instead of g++ -fdump-ada-spec
> 
> g++ does a better job, they say, but you need to use extern "C":
> extern "C" { 
>    // C declarations go here 
> }

Both ways worked fine. Thank you all very much for the info.

A. Vo


  reply	other threads:[~2014-10-19 17:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17 23:22 Interface with C codes Anh Vo
2014-10-17 23:30 ` Anh Vo
2014-10-18 18:33   ` Stephen Leake
2014-10-19  4:33     ` Anh Vo
2014-10-19  9:24       ` Simon Clubley
2014-10-19 11:46       ` Brian Drummond
2014-10-19 13:58         ` Simon Wright
2014-10-19 17:33           ` Anh Vo [this message]
2014-10-17 23:49 ` Adam Beneschan
2014-10-18  0:04   ` Anh Vo
2014-10-18  1:04     ` Anh Vo
2014-10-20 16:14     ` Adam Beneschan
2014-10-25  3:31       ` Anh Vo
2014-10-18  2:20 ` Jeffrey Carter
2014-10-18 17:00   ` Anh Vo
2014-10-18  6:27 ` Per Sandberg
2014-10-18 17:08   ` Anh Vo
2014-10-18 17:12     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox