comp.lang.ada
 help / color / mirror / Atom feed
From: agent@drrob1.com
Subject: Re: project file syntax
Date: Sat, 02 Aug 2014 07:56:40 -0400
Date: 2014-08-02T07:56:40-04:00	[thread overview]
Message-ID: <jdkpt9910faqhf5vp020avj0teu20k3k8e@4ax.com> (raw)
In-Reply-To: lyvbqbq4v3.fsf@pushface.org

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 <simon@pushface.org>
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 .


  reply	other threads:[~2014-08-02 11:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-01 20:48 project file syntax agent
2014-08-01 21:25 ` Simon Wright
2014-08-02 11:56   ` agent [this message]
2014-08-02 13:16 ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox