comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: AdaGraph question
Date: 1999/03/07
Date: 1999-03-07T00:00:00+00:00	[thread overview]
Message-ID: <IPfUhOIa#GA.247@pet.hiwaay.net> (raw)
In-Reply-To: 36E1EA9D.9BCBA739@hiwaay.net


Bruce or Tracy wrote in message <36E1EA9D.9BCBA739@hiwaay.net>...
>Does AdaGraph work with GNAT 3.11, also?
>
>The reason I ask is because the instructions say:
>
>
>   To use AdaGraph with AdaGIDE
>
>      Choose Tools, Options and set the
>
>         ADA_INCLUDE_PATH
>         ADA_OBJECTS_PATH
>
>      fields to c:/usr/adagraph and press 'Save'.
>
>But, the AdaGide options contains no way, that I can see, to
>set these two options.
>
It looks like you need to do some basic reading on the ways GNAT does its
searches for the files it needs, as well as the ways in which AdaGIDE
supports these options.

You need to read the GNAT User's Guide sections entitled
"Search Paths for gnatbind" and
"Search Paths and the Run-Time Library (RTL)"

Then, you need to use the "GNAT options in current directory" to set the
compiler options and gnatmake options using the command line switch option
alternative to environment variables method of defining GNATS search paths.

I find that using the environment variables ADA_INCLUDE_PATH and
ADA_OBJECTS_PATH is a bad idea, given that the command line alternatives are
available.  The reason is that when one is working on several projects, or
is perhaps simply wanting to compare two versions of a library, using a file
specific to a directory is the better approach.

In AdaGIDE, the options you have set for the "GNAT options in current
directory", are stored into a specially-named file in the directory
containing the file you're compiling.  Similarly, when using emacs ada-mode
(the method I prefer because it gives me a uniform environment over all
platform with which I work -- various DOS-based and various flavors of
UNIX -- and frees me from the need to shift mental gears between platforms)
the project files can define search paths and GNAT options.

And for building from the command line, I use a Makefile to define search
paths and GNAT options.

If you insist on using environment variables, it can be done by setting them
in the autoexec.bat file if you're working on Windows 95, or if you're using
Windows NT, using the System applet in the Control Panel.

An amazing store of knowledge about GNAT can be acquired by simply reading
the provided documentation.

David C. Hoos, Sr.








  reply	other threads:[~1999-03-07  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-06  0:00 AdaGraph question Bruce or Tracy
1999-03-07  0:00 ` David C. Hoos, Sr. [this message]
1999-03-07  0:00 ` Jerry van Dijk
1999-03-07  0:00   ` Bruce or Tracy
1999-03-08  0:00     ` Jerry van Dijk
1999-03-08  0:00       ` Bruce Jacobs
replies disabled

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