comp.lang.ada
 help / color / mirror / Atom feed
From: JD <drummond@nosc.mil>
Subject: Re: Gnat Ada95 REAL_TIME ANNEX problemS
Date: 1997/07/29
Date: 1997-07-29T00:00:00+00:00	[thread overview]
Message-ID: <33DD987C.27@nosc.mil> (raw)
In-Reply-To: 199707251330.PAA20083@basement.replay.com


Anonymous wrote:
> 
> On Thu, 24 Jul 1997 05:03:11 GMT, JD <drummond@nosc.mil> wrote:
> >    I have been using Ada83 and recently switched to Gnat 3.09 Ada95.
> > Part of the code I am writing utilizes timers. The Ada83 version of
> > the timer code had used the CALENDAR package, I am trying to change
> > this timer code to take advantage of the finer granularity found in
> > the Ada95 REAL_TIME package. I have read that `Calendar.Clock' and
> > `Real_Time.Clock' are implemented as transformations of the same
> > time base. However I can't seem to get the REAL_TIME package to work
> > with the "+", and "-" functions. The error from the compilier
> > is:
> > gnatmake -I../common1 temp_controller
> > gcc -c -I./ -I../common1 -I- ../common1/run_time_timer1.adb
> > run_time_timer1.adb:97:49: invalid operand types for operator "+"
> > run_time_timer1.adb:97:63: expected type "Standard.DURATION"
> > run_time_timer1.adb:97:63: found private type "Ada.Real_Time.Time"
> > gnatmake: "../common1/run_time_timer1.adb" compilation error
> > *** Error code 2
> > make: Fatal error: Command failed for target `all'
> ..
> 
> Was it really necessary to post this 5 times?
> 
> Since you haven't posted your code, we can't tell exactly what is wrong.
> >From this error message, however, it seems likely that you are using the
> types from Ada.Real_Time and the "+" from Ada.Calendar.
> 
> Jeff Carter  PGP:1024/440FBE21
 
  Thank you for the possible solution to my problem, I will ckeck this
out.
I am, however not using the line "with ADA.CALENDAR; use ADA.CALENDAR;, 
instead I am using "with ADA.REAL_TIME; use ADA.REAL_TIME; -shouldn't
this bring in the realtime package? 

  Also sorry about the multiple postings, the newsreader I am using
indicated an error every time I had sent a post, and seeing no result of
my post on the comp.lang.ada group I continued attempting to transmit a
news post. This
resulted in 5 unintended posts.

JD




      parent reply	other threads:[~1997-07-29  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-24  0:00 Help, Gnat Ada95 REAL_TIME ANNEX problemS JD
     [not found] ` <199707251330.PAA20083@basement.replay.com>
1997-07-29  0:00   ` JD [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