From: Stephen Leake <stephen_leake@acm.org>
To: Jacob Sparre Andersen <sparre@nbi.dk>
Cc: comp.lang.ada@ada-france.org
Subject: Re: GNAT Project Files?
Date: Sat, 25 Jun 2005 14:14:16 -0400
Date: 2005-06-25T14:14:16-04:00 [thread overview]
Message-ID: <mailman.95.1119723281.17633.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <m21x6qfmc2.fsf@hugin.crs4.it> (Jacob Sparre Andersen's message of "25 Jun 2005 18:11:25 +0200")
Jacob Sparre Andersen <sparre@nbi.dk> writes:
> I have some difficulties with understanding GNAT project files. And
> since most of tha Ada libraries on Debian seem to use them, it looks
> like I have to as well.
You need to read both the GNAT user's guide, and the GNAT reference
manual, to get all the relevant information on project files.
> 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.
> project Test_Word_Buffer is
> for Object_Dir use ".";
> for Exec_Dir use ".";
> for Main use ("test_word_buffer");
> end Test_Word_Buffer;
> -----
> At least GNAT doesn't complain about syntax errors in this file, but
> once it comes to the linking stage I get a whole bunch of errors
> looking like these:
> -----
> b~test_word_buffer.o(.text+0xa32): In function `adainit':
> : undefined reference to `aws__os_lib_E'
> b~test_word_buffer.o(.text+0xa48): In function `adainit':
> : undefined reference to `aws__os_lib___elabs'
> b~test_word_buffer.o(.text+0xa4e): In function `adainit':
> : undefined reference to `aws__os_lib_E'
> -----
> 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;
--
-- Stephe
next prev parent reply other threads:[~2005-06-25 18:14 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 [this message]
2005-06-25 18:53 ` Jacob Sparre Andersen
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