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 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.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: Re: GNAT Project Files? Date: 25 Jun 2005 20:53:14 +0200 Organization: hacking.dk - Doing fun stuff with open source Sender: sparre@hugin.crs4.it Message-ID: References: NNTP-Posting-Host: 80.241.165.47 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: xyzzy.adsl.dk 1119726320 24745 80.241.165.47 (25 Jun 2005 19:05:20 GMT) X-Complaints-To: usenet@news.hacking.dk NNTP-Posting-Date: Sat, 25 Jun 2005 19:05:20 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Xref: g2news1.google.com comp.lang.ada:11651 Date: 2005-06-25T20:53:14+02:00 List-Id: Stephen Leake wrote: > Jacob Sparre Andersen 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