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!news3.google.com!news2.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 20:08:12 -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 1119744513 46573 212.85.156.195 (26 Jun 2005 00:08:33 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sun, 26 Jun 2005 00:08:33 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: Pascal Obry Return-Path: In-Reply-To: (Pascal Obry's message of "25 Jun 2005 22:53:45 +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:11654 Date: 2005-06-25T20:08:12-04:00 Pascal Obry writes: > Jacob Sparre Andersen writes: > >> More precisely: >> >> package Linker is >> for Switches ("test_word_buffer.adb") use ("-laws", "-lcharles"); >> end Linker; >> >> Thanks. > > This is not right. If the above works it means that the AWS project file is > wrong. I don't think so. Clearly aws.gpr does not know about test_word_buffer.adb. I don't think there is a project file syntax for "use this library for all executables". Perhaps there should be. One solution is to use 'pragma Linker ("-laws")' in the Ada source for aws. Hmm. Maybe you could do (in aws.gpr): package Linker is for Default_Switches ("Ada") use ("-laws"); end Linker; Then in a user project file you can do: package Linker for Switches ("test_word_buffer.adb") use Aws.Linker.Default_Switches; end Linker; Better, but still not automatic. 'gprmake' (in GNAT 5.03a) can build both C and Ada code, and link them together. But that's not quite what you want here, I think. > How aws.gpr was built ? Which AWS version are you using ? The whole > point of the Project File is to deal with those issues for you. Maybe I've missed something; how do you expect the project file to work here? -- -- Stephe