comp.lang.ada
 help / color / mirror / Atom feed
From: Nige <nigel.scott@uk.thalesgroup.com>
Subject: Re: How to Build Existing Code Using Apex
Date: Tue, 30 Apr 2002 08:55:59 +0100
Date: 2002-04-30T07:53:33+00:00	[thread overview]
Message-ID: <3CCE4E0F.A1B4BC10@uk.thalesgroup.com> (raw)
In-Reply-To: f177de3e.0204290855.7546feaa@posting.google.com

maiale wrote:
> 
> Hi,
> 
> I am new to ada/apex and just received some code that should be
> complete. I am at a loss as to how to re-build this stuff.
> 
> I am going through the tutorial/man pages/rational support site but
> the going is slow.
> 
> Maybe someone here can help me quickly.
> 
> I have a directory with 10 or so project.ss subdirectories. And then
> for each of those directories there is one subdirectory with a build
> number. In this subdirectory there are ada files.
> 
> I am at a loss as to how to rebuild this stuff using the APEX IDE.
> 
> If anyone can explain to me how this can be done, I'd truly appreciate
> it. Likewise, if there is a simple tutorial on "reopening/rebuilding"
> old source code, that'd be a blessing.

You need to find the top level subprogram in the build. It will more
than likely be a procedure without a separate specification, so look for
a file that ends in .2.ada that doesn't have a corresponding .1.ada. If
you open it and it appears to be a procedure body that with's a whole
load of other stuff then you might have found it. Unfortunately it's not
easy to locate it without knowing more about the project.

Apex divides the project into SUBSYSTEMs (.ss directories) which are
logically grouped packages, and to link an executable you need to have
an appropriate VIEW of each subsystem. These are either WORKING (.wrk)
views which can be modified, or RELEASE (.rel) views which can't (for
instance, the predefined subsystems containing Ada.Text_IO, etc).

Each view can import other views to give you your complete build. If the
import set (the combined set of all the imports) is valid, you should be
able to select the top level subprogram, and simply select 'Link...'
from the 'Compile' menu which will give you a pop up dialog box. Just
press OK and you should end up with an executable.

This is obviously a very simplistic view, and there are stacks of things
that could prevent it working, but if you need more info, let me know...

Nige



  parent reply	other threads:[~2002-04-30  7:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-29 16:55 How to Build Existing Code Using Apex maiale
2002-04-29 23:27 ` John Cupak
2002-04-30  7:55 ` Nige [this message]
2002-04-30 23:02 ` Robert Dewar
2002-05-01 14:36   ` maiale
replies disabled

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