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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx08.iad.POSTED!not-for-mail From: agent@drrob1.com Newsgroups: comp.lang.ada Subject: project file syntax Message-ID: User-Agent: ForteAgent/7.20.32.1218 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@easynews.com Organization: Forte - www.forteinc.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Fri, 01 Aug 2014 16:48:11 -0400 X-Received-Bytes: 1824 X-Received-Body-CRC: 4156131923 Xref: news.eternal-september.org comp.lang.ada:21387 Date: 2014-08-01T16:48:11-04:00 List-Id: As an exercise for myself, I'm converting an rpn calculator I wrote in modula-2 to Ada. I have already debugged several modules, such as tknrtnsa, timliba and environa. Now I want to debug 2 modules, hpcalca and rpna. I call this project file rpna.gpr project rpna is for Source_Files use ("rpna.adb","hpcalca.ads","hpcala.adb"); for Source_Dirs use (".", "./**"); for Main use ("rpna"); package Builder is for Default_Switches ("Ada") use ("-g"); end Builder; package Compiler is for Default_Switches ("Ada") use ("-fstack-check", "-gnatVa", "-g", "-gnato", "-gnatf", "-gnatwu", "-gnat2012"); end Compiler; end rpna; I get errors that the modules I previously wrote cannot be found. That is, tknrtnsa, timliba and environa cannot be found. If I have these re-compiled by putting them in the Source_Files list, that works. But it strikes me as I am not understanding something about project files. How do I write a project file to not have to recompile packages that I know already work, and for which I have the .ali and .o files? Thanks, Rob