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: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news.glorb.com!hitnews.eu!news-out.readnews.com!s09-01.readnews.com!not-for-mail X-Trace: DXC=PHWLA6>fhm6Pa2[mDGQUn8[3OhcoN[H00X44`8^\]>7:8DHB_I2k0T0>K`gGFg:IN9=dV\T6`gA68h1[ Newsgroups: comp.lang.ada Subject: Re: c2ada and hello world Message-ID: <20130919222312.52030415@lufsen.sandat.dyndns.org> References: X-Newsreader: Claws Mail 3.9.0 (GTK+ 2.24.8; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 6a8ebed4.ngroups.net X-Original-Bytes: 1659 Xref: number.nntp.dca.giganews.com comp.lang.ada:183385 Date: 2013-09-19T22:23:12+02:00 List-Id: ??? 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 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