comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.sandberg@sandat.dyndns.org>
Subject: Re: c2ada and hello world
Date: Thu, 19 Sep 2013 22:23:12 +0200
Date: 2013-09-19T22:23:12+02:00	[thread overview]
Message-ID: <20130919222312.52030415@lufsen.sandat.dyndns.org> (raw)
In-Reply-To: b0385c8e-5572-43a9-8ab9-454fe187065b@googlegroups.com

???
When mixing C(++) and Ada  nowadays the way to do it is:
* Get the .h(h) files in order and clean.
* Compile a .c(pp) file only containing the required includes with the
switch "-fdump-ada-spec".
  This will produce fairly decent specs (.ads-files) given that the
  header-files are decent.

So skip c2ada and use the interfaces produced by a modern gcc.

/Per


On Fri, 13 Sep 2013 17:30:54 -0700 (PDT)
Jerry <lanceboyle@qwest.net> wrote:


> When I try to get c2ada to convert a hello world, all I get is an
> empty package body and spec, like this:
> 
> 
> with C;
> with C.Ops;  use C.Ops;
> 
> package body Users.me.hello is
> 
> 
> end Users.me.hello;
> 
> and
> 
> package Users.me.hello is
> 
> 
> end Users.me.hello;
> 
> 
> What am I doing wrong?
> Jerry




      parent reply	other threads:[~2013-09-19 20:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-14  0:30 c2ada and hello world Jerry
2013-09-14  6:06 ` Shark8
2013-09-14  8:02 ` Simon Wright
2013-09-19 20:23 ` Per Sandberg [this message]
replies disabled

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