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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,680db47cb70ed728 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!usenet-fr.net!news.enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: GNAT Project Files? Date: Sat, 25 Jun 2005 14:14:16 -0400 Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1119723282 89872 212.85.156.195 (25 Jun 2005 18:14:42 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sat, 25 Jun 2005 18:14:42 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: Jacob Sparre Andersen Return-Path: In-Reply-To: (Jacob Sparre Andersen's message of "25 Jun 2005 18:11:25 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:11649 Date: 2005-06-25T14:14:16-04:00 Jacob Sparre Andersen 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