comp.lang.ada
 help / color / mirror / Atom feed
* GNAT Project Files?
@ 2005-06-25 16:11 Jacob Sparre Andersen
  2005-06-25 18:14 ` Stephen Leake
  0 siblings, 1 reply; 11+ messages in thread
From: Jacob Sparre Andersen @ 2005-06-25 16:11 UTC (permalink / raw)


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.

First I tried using the GNAT Programming System (2.1.0-4) to generate
a project file, but GPS couldn't generate a file it could understand
itself, so I dropped that idea.

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";

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?

Jacob
-- 
Adlai Stevenson said it all when, at an event during the
1956 Presidential campaign, a woman shouted, "You have the
vote of every thinking person!" Stevenson shouted back,
"That's not enough, madam, we need a majority!"




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-06-26 19:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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