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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,680db47cb70ed728,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!news.banetele.no!news.hacking.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: GNAT Project Files? Date: 25 Jun 2005 18:11:25 +0200 Organization: hacking.dk - Doing fun stuff with open source Sender: sparre@hugin.crs4.it Message-ID: NNTP-Posting-Host: 80.241.165.47 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: xyzzy.adsl.dk 1119716202 21133 80.241.165.47 (25 Jun 2005 16:16:42 GMT) X-Complaints-To: usenet@news.hacking.dk NNTP-Posting-Date: Sat, 25 Jun 2005 16:16:42 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Xref: g2news1.google.com comp.lang.ada:11646 Date: 2005-06-25T18:11:25+02:00 List-Id: 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!"