From: Simon Wright <simon@pushface.org>
Subject: Re: ANN: Ada 2005 Math Extensions, 20100901 release
Date: Thu, 23 Sep 2010 21:26:23 +0100
Date: 2010-09-23T21:26:23+01:00 [thread overview]
Message-ID: <m2vd5ww6j4.fsf@pushface.org> (raw)
In-Reply-To: 95af4414-59b7-4567-9f88-ec808d54e6f0@u13g2000vbo.googlegroups.com
Ada novice <ycalleecharan@gmx.com> writes:
> On Sep 6, 9:49 pm, Simon Wright <si...@pushface.org> wrote:
>
>> In order to use this library within your own code, you need to use a
>> GPR referencing the extensions' GPR, "ada_math_build" [This name is
>> subject to change]. Either
>>
>> * say 'with "ada_math_build";' and include
>> /where/ever/gnat-math-extn-YYYYMMDD/src in your ADA_PROJECTS_PATH
>> environment variable; or
>>
>> * say 'with "/where/ever/gnat-math-extn-YYYYMMDD/src/ada_math_build";'
>> (this path can be relative, if you like)."
>
> I asked about this earlier but didn't get an answer. Hopefully,
> someone will answer now. If I want to use the library with my own
> code, then how do I proceed? I tried the first solution (from above)
> but I don't know how to include /where/ever/gnat-math-extn-YYYYMMDD/
> src in the ADA_PROJECTS_PATH environment variable.
When I wrote "/where/ever/..." I was being guilty of being
Unix-centric. Sorry.
The equivalent on Windows would be "X:\where\ever\...", in other words a
full file path from the top level downwards ('absolute' path).
There's a reasonable-looking tutorial on Windows env vars at
http://www.chem.gla.ac.uk/~louis/software/faq/q1.html (select your
Windows version in the first paragraph).
> As for the second solution, I understand that it can be either a / or
> a \ depending whether it's Windows or Linux. I have Windows and I
> tried /. I can't get this to work. And how do I put an absolute path?
> The GNAT compiler expects an identifier after with and it finds " and
> complains.
As someone else said, GPRs are read by the gnatmake tool, not by the
compiler (I realise this is a hard distinction to make!).
gnatmake foo.adb -- compile the Ada source foo.adb
gnatmake -P foo.gpr -- read & obey the project file foo.gpr
Windows gnatmake is quite happy to read forward-slash or backward-, I'm
not so sure about Unix gnatmake.
You may find it easier to model your GPR on my test_extensions.gpr -
suppose that you've unpacked my package into C:\gnat-math-extn-20100911,
then your GPR would begin
with "C:\gnat-math-extn-20100911\src\ada_math_build";
project YC is
...
next prev parent reply other threads:[~2010-09-23 20:26 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-01 20:13 ANN: Ada 2005 Math Extensions, 20100901 release Simon Wright
2010-09-02 15:40 ` Ada novice
2010-09-02 22:12 ` jonathan
2010-09-03 2:08 ` John B. Matthews
2010-09-03 5:58 ` Simon Wright
2010-09-03 13:48 ` John B. Matthews
2010-09-03 23:32 ` jonathan
2010-09-04 11:12 ` Ada novice
2010-09-04 15:23 ` Simon Wright
2010-09-04 17:03 ` Simon Wright
2010-09-04 17:03 ` Ada novice
2010-09-04 18:19 ` Simon Wright
2010-09-05 0:32 ` jonathan
2010-09-05 11:38 ` Ada novice
2010-09-07 16:01 ` jonathan
2010-09-07 17:16 ` Nasser M. Abbasi
2010-09-06 19:49 ` Simon Wright
2010-09-06 21:04 ` jonathan
2010-09-07 7:45 ` Ada novice
2010-09-07 12:45 ` sjw
2010-09-22 11:50 ` Ada novice
2010-09-22 12:08 ` AdaMagica
2010-09-22 12:49 ` Ada novice
2010-09-23 20:26 ` Simon Wright [this message]
2010-09-24 10:18 ` Ada novice
2010-09-28 20:46 ` Ada novice
2010-10-02 18:29 ` Simon Wright
2010-10-02 20:51 ` Ada novice
2010-10-02 22:27 ` Nasser M. Abbasi
2010-10-03 11:14 ` Brian Drummond
2010-10-04 19:17 ` Simon Wright
2010-09-07 12:56 ` sjw
2010-09-07 15:51 ` jonathan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox