comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: Building with AdaGIDE
Date: Fri, 13 Feb 2004 15:49:45 -0500
Date: 2004-02-13T15:49:45-05:00	[thread overview]
Message-ID: <rq6dnfH8gpL3pbDdRVn-jg@comcast.com> (raw)
In-Reply-To: <newscache$one1th$9km$1@newsfront4.netvisao.pt>

Joao Dias wrote:

> "Preben Randhol" wrote
> 
> 
>>You say a small package. Did you also make a main program?


> begin -- I suposed that was the main progam !
> 
> Chave2:= Sorteia_Chave;
> 
> Ada.Integer_Text_Io.Put(Chave2(1),Chave2(2)); --print 2 extracted balls

> end Totoloto;

Yep, you forgot to have a main program.  In Ada there is nothing wrong 
with not having a main program for some partition.  But you need at 
least one main program somewhere.  Try compiling:

with Totoloto;
procedure Main is begin null; end Main;

You should get an executable, and hopefully the results you expected. 
You can move the lines of code above into the main program, but if you 
do you will want "use Totoloto;" somewhere.
-- 
                                           Robert I. Eachus

"The war on terror is a different kind of war, waged capture by capture, 
cell by cell, and victory by victory. Our security is assured by our 
perseverance and by our sure belief in the success of liberty." -- 
George W. Bush




  reply	other threads:[~2004-02-13 20:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-13 16:09 Building with AdaGIDE Joao Dias
2004-02-13 16:26 ` Preben Randhol
2004-02-13 19:16   ` Joao Dias
2004-02-13 20:49     ` Robert I. Eachus [this message]
2004-02-14  9:02       ` Marin David Condic
2004-02-16 17:52         ` Joao Dias
replies disabled

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