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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f3b9a73473e0c36f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-13 12:49:48 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!border1.nntp.sjc.giganews.com!nntp.giganews.com!local1.nntp.sjc.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 13 Feb 2004 14:49:46 -0600 Date: Fri, 13 Feb 2004 15:49:45 -0500 From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Building with AdaGIDE References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.77.160 X-Trace: sv3-fDrJc8UVxDNy56vlqbXrYBBE164J+MPX/fgdCP0KZlRSKtgOfb4e5gFCew172/WvstO0O1UZT+XgzVM!uXt9Qmem+mzIWXtwLNhV55dqhqh3+qA7sfSVzhOfkBrY5Bqdzo7RQsnhep1Jrg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:5548 Date: 2004-02-13T15:49:45-05:00 List-Id: 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