From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: GNAT Project Files?
Date: 25 Jun 2005 20:53:14 +0200
Date: 2005-06-25T20:53:14+02:00 [thread overview]
Message-ID: <m2wtoie09x.fsf@hugin.crs4.it> (raw)
In-Reply-To: mailman.95.1119723281.17633.comp.lang.ada@ada-france.org
Stephen Leake wrote:
> Jacob Sparre Andersen <sparre@nbi.dk> writes:
> You need to read both the GNAT user's guide, and the GNAT reference
> manual, to get all the relevant information on project files.
I tried that, but apparently I wasn't patient enough with the text.
> > My second solution was to try to put one together myself:
> > -----
> > with "/usr/share/ada/adainclude/aws";
> > with "/usr/share/ada/adainclude/charles";
> > with "/home/sparre/Ada/Pakker/Strenge/string_arrays";
> > with "/home/sparre/Ada/Programmer/CGI/Ordlisten/get_random_words";
>
> It's better to specify the search path in the ADA_PROJECT_PATH
> environment variable, so you can move things around.
OK.
> > project Test_Word_Buffer is
> > for Object_Dir use ".";
> > for Exec_Dir use ".";
> > for Main use ("test_word_buffer");
> > end Test_Word_Buffer;
[...]
> > What is wrong/missing in the GNAT project file?
>
> There is apparently a non-Ada library that you need to link with. use:
>
> package Linker is
> for Switches ("bus_master.adb") use ("-lgds_1553_c");
> end Linker;
More precisely:
package Linker is
for Switches ("test_word_buffer.adb") use ("-laws", "-lcharles");
end Linker;
Thanks.
Jacob
--
"War does not determine who is right - only who is left."
-- Bertrand Russell
next prev parent reply other threads:[~2005-06-25 18:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-25 16:11 GNAT Project Files? Jacob Sparre Andersen
2005-06-25 18:14 ` Stephen Leake
2005-06-25 18:53 ` Jacob Sparre Andersen [this message]
2005-06-25 20:53 ` Pascal Obry
2005-06-26 0:08 ` Stephen Leake
2005-06-26 7:55 ` Pascal Obry
2005-06-26 13:00 ` Stephen Leake
2005-06-26 0:22 ` Jacob Sparre Andersen
2005-06-26 7:59 ` Pascal Obry
2005-06-26 13:24 ` Ludovic Brenta
2005-06-26 19:40 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox