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,6da02c98ea5cc99c X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!out04b.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!in03.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Project file - suggestions/help needed. References: <4895659d$0$15880$edfadb0f@dtext01.news.tele.dk> From: Stephen Leake Date: Sun, 03 Aug 2008 07:03:38 -0400 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Cancel-Lock: sha1:MhNNGgiL8BdY4685PnZfMreBJeA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 95982489589b1c74cf41819658 Xref: g2news1.google.com comp.lang.ada:1426 Date: 2008-08-03T07:03:38-04:00 List-Id: Thomas writes: > http://pastebin.ca/1091592 > > It seems to work as intended, but I would really like some comments > from the more experienced Ada crowd. Are there redundant settings in > there? Are there important settings missing? -gnato > Are there downright "dangerous" mistakes? AdaCore recommends against -O3; it contains dangerous optimizations. Stick with -O2. > The posted project file has been build by combining settings found on > various Ada/gnatmake related websites. It also be good to read the GNAT User Guide and GNAT Reference. What is the rationale for not using -gnatwa? > The goals of the file is: > > 1. A fairly well optimized executable > 2. Generate as many style warnings as possible > 3. Enable Ada 2005 extensions > 4. It should work for basic Ada projects, coded by two beginners > > Also, it looks as if I will be needing XML/Ada for the project I'm > currently working on. How would I go about adding the XML/Ada stuff to > my project file? I assume XML/Ada has a gpr file intended to be included in your project file; let's assume it's /stuff/xml_ada/xml_ada.gpr. Declare an environment variable ADA_PROJECT_PATH containing "/stuff/xml_ada". Then add to your project file: "with xml_ada;", before the 'project' keyword. > Would I just move all the XML/Ada source files to my source/ > directory, and that would be it? No. This is all explained in the GNAT Reference. -- -- Stephe