From: porton@ex-code.com (Victor Porton)
Subject: Re: Import a type from C
Date: Thu, 07 Nov 2002 12:16:06 +0500
Date: 2002-11-07T10:50:43+00:00 [thread overview]
Message-ID: <3dca4583$0$299$bed64819@news.gradwell.net> (raw)
In-Reply-To: wmey9.336376$nc1.2504303@telenews.teleline.es
In article <u7kfqjnvv.fsf@gsfc.nasa.gov>,
Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov> writes:
> "Frank J. Lhota" <NOSPAM.lhota.adarose@verizon.net> writes:
>
>> pragma Convention( C, My_Data );
>
> Note that "a C compiler" really means "the C compiler that the Ada
> compiler knows about, with its default command line args". For
> example, GNAT will assume Gnu C, _without_ -fpacked. ObjectAda
> probably assumes MS C, again without the "packed" flag. That has
> caused me some major problems, when linking against C code compiled
> _with_ the -fpacked flag.
May be specifying both
pragma Convention( C, My_Data );
and
pragma Pack( My_Type );
will be compatible with gcc -fpacked?
next prev parent reply other threads:[~2002-11-07 7:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-06 19:48 Import a type from C Francisco Santoyo
2002-11-06 20:06 ` Frank J. Lhota
2002-11-06 23:10 ` Stephen Leake
2003-01-08 20:46 ` Rupert Pigott
2003-01-10 3:48 ` Eric G. Miller
2003-01-14 4:47 ` David Thompson
2002-11-07 7:16 ` Victor Porton [this message]
2002-11-07 13:47 ` Stephen Leake
2002-11-07 16:03 ` Frank J. Lhota
2002-11-07 16:20 ` Robert A Duff
2002-11-08 14:51 ` Stephen Leake
2002-11-07 19:00 ` chris.danx
2002-11-08 4:02 ` Victor Porton
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox