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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5e87954953acc55 X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: would REALLY appreciate some help with this QUESTION Date: 1999/09/02 Message-ID: <37CE9B88.AB41210E@averstar.com>#1/1 X-Deja-AN: 520209830 Content-Transfer-Encoding: 7bit Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.burl.averstar.com References: <7qlss8$e8g$1@nnrp1.deja.com> To: irons@my-deja.com X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-09-02T00:00:00+00:00 List-Id: irons@my-deja.com wrote: > > I have a quick question about a compiler (objectada 7.1) ...i wrote a > package with a body, and spcification to use in a program ..when i try > to run the program i get a warning that states: "you must specify a > main unit in project setting build tab" ...that's where i get stuck and > end up having no clue what to do to run my program In general, you need to write a stand-alone, parameterless procedure as the place where execution will start in an Ada program. In some special situations, a program without such a "main unit" could be useful (e.g. as a "dynamic linked library" = DLL), but for your purposes, I recommend you always create a parameterless "main" procedure. It can be very simple, containing just a single call on a function or procedure in your package. > > any input would be Greatly appreciated > > Adnan > > My e-mail: okdeh@zebra.net -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Distributed IT Solutions (www.averstar.com/tools) AverStar (formerly Intermetrics, Inc.) Burlington, MA USA