From: jan.de.kruyf@gmail.com
Subject: Re: file descriptor of a serial port
Date: Mon, 20 Aug 2018 08:41:33 -0700 (PDT)
Date: 2018-08-20T08:41:33-07:00 [thread overview]
Message-ID: <21aea423-bb16-4612-b914-1dab4d941b25@googlegroups.com> (raw)
In-Reply-To: <plem1q$jld$1@dont-email.me>
On Monday, August 20, 2018 at 5:17:15 PM UTC+2, björn lundin wrote:
> On 2018-08-20 15:56, jan.....com wrote:
>
> > I tried to construct a child package of GNAT.Serial_Communications but the compiler does not like that, since it does not
> >actually compile that package.
>
> Do you actually 'with' that new child package?
> Otherwise it is strange that it is not compiled.
>
>
>
> --
> --
> Björn
Björn,
this is what I get on building of
package body Gnat.Serial_Communications.Baud is
.
.
procedure Get_Divisor (Port : Serial_Port)
is
function Toint is new Ada.Unchecked_Conversion -- line 53
(Source => Port_Data, Target => Integer);
begin
.
.
gprbuild -Paupdi.gpr
Compile
[Ada] g-secoba.adb
g-secoba.adb:53:17: premature use of incomplete type
g-secoba.adb:53:17: instantiation abandoned
g-secoba.adb:57:33: "toint" is undefined
gprbuild: *** compilation phase failed
---------------------
And now I do get the compilers problem. the Port_Data type is only spelled out in the body of Gnat.Serial_Communications as an integer. So I cannot see it in the child.
Pity. So I will have to construct a hand crafted Serial_Communications package.
Thanks for your help.
j.
next prev parent reply other threads:[~2018-08-20 15:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-20 13:56 file descriptor of a serial port jan.de.kruyf
2018-08-20 14:21 ` J-P. Rosen
2018-08-20 14:33 ` jan.de.kruyf
2018-08-20 14:58 ` joakimds
2018-08-20 15:12 ` jan.de.kruyf
2018-08-20 16:36 ` Dmitry A. Kazakov
2018-08-20 19:10 ` jan.de.kruyf
2018-08-20 19:26 ` Dmitry A. Kazakov
2018-08-21 7:09 ` jan.de.kruyf
2018-08-20 15:17 ` Björn Lundin
2018-08-20 15:41 ` jan.de.kruyf [this message]
2018-08-20 19:52 ` Per Sandberg
2018-08-21 7:19 ` jan.de.kruyf
2018-08-22 7:03 ` jan.de.kruyf
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox