comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
To: irons@my-deja.com
Subject: Re: would REALLY appreciate some help with this QUESTION
Date: 1999/09/02
Date: 1999-09-02T00:00:00+00:00	[thread overview]
Message-ID: <37CE9B88.AB41210E@averstar.com> (raw)
In-Reply-To: 7qlss8$e8g$1@nnrp1.deja.com

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




      reply	other threads:[~1999-09-02  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-02  0:00 would REALLY appreciate some help with this QUESTION irons
1999-09-02  0:00 ` Tucker Taft [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