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!fx15.iad.POSTED!not-for-mail From: agent@drrob1.com Newsgroups: comp.lang.ada Subject: Re: project file syntax Message-ID: References: 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: Sat, 02 Aug 2014 07:56:40 -0400 X-Received-Bytes: 2012 X-Received-Body-CRC: 2480035172 Xref: news.eternal-september.org comp.lang.ada:21398 Date: 2014-08-02T07:56:40-04:00 List-Id: Thanks. I was hoping for an automatic way for separate compilation like I do for my modula-2 code. so it goes. --rob On Fri, 01 Aug 2014 22:25:52 +0100, Simon Wright wrote: >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 .