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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 05 Apr 2014 10:17:07 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gnatmake error I don't understand References: <85ha69ue15.fsf@stephe-leake.org> <9412dfa1-8fae-4396-b7cf-06ea9554de6c@googlegroups.com> In-Reply-To: <9412dfa1-8fae-4396-b7cf-06ea9554de6c@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <533fbc04$0$6713$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 05 Apr 2014 10:17:08 CEST NNTP-Posting-Host: 22e2958a.newsspool2.arcor-online.net X-Trace: DXC=OO\KUci@W>:TQL:hoD@>T?A9EHlD; 3Yc24Fo<]lROoR18kFPCY\c7>ejV8Mn18_931K]?=La8T6i:cc9 X-Complaints-To: usenet-abuse@arcor.de X-Original-Bytes: 1869 Xref: number.nntp.dca.giganews.com comp.lang.ada:185551 Date: 2014-04-05T10:17:08+02:00 List-Id: On 04/04/14 22:02, drrob106@gmail.com wrote: > How would I write the gpr file if I were to try to have the main program in the package, as I've tried to do here? Find switch -z in GNAT's documentation, e.g. `-z' No main subprogram. Bind and link the program even if the unit name given on the command line is a package name. The resulting executable will execute the elaboration routines of the package and its closure, then the finalization routines. You could call a subprogram from the package body's begin block, or just treat the package body's begin block as a procedure's body.