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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: project file syntax Date: Fri, 01 Aug 2014 22:25:52 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="f008dfb2a20cab2735f9b6a28e892fd7"; logging-data="12446"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+gkbarKXAMar9qy5w9QcsPIlbjcKI+HY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:kMK4G0TOnp9gkCFJfadJ2gHsnLM= sha1:Wph2oimHRP/O02/SSmAXQ2FeDXE= Xref: news.eternal-september.org comp.lang.ada:21390 Date: 2014-08-01T22:25:52+01:00 List-Id: agent@drrob1.com writes: > 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 [...] > 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? Recompilation is pretty cheap, especially with a small number of files like these. I'd probably put all the source in the same project! That said, you can put tknrtnsa etc. in their own project and "with" it in your main project. I wrote a more complete answer to a similar question at http://stackoverflow.com/a/12587981 .