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,a4459386f7223442 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: AdaGraph question Date: 1999/03/07 Message-ID: #1/1 X-Deja-AN: 452175059 Content-Transfer-Encoding: 7bit References: <36E1EA9D.9BCBA739@hiwaay.net> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-03-07T00:00:00+00:00 List-Id: 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.