comp.lang.ada
 help / color / mirror / Atom feed
From: briot.emmanuel@gmail.com
Subject: Re: Question about C++ files with GPRBUILD
Date: Tue, 8 Mar 2016 00:35:08 -0800 (PST)
Date: 2016-03-08T00:35:08-08:00	[thread overview]
Message-ID: <0d7bc2a3-e00d-4506-b12b-59016659100c@googlegroups.com> (raw)
In-Reply-To: <fe6e98f0-ce29-407a-b840-68bdf96ceb38@googlegroups.com>

> The default is all files in all Source_Dirs.

Right, this is unfortunately needed for C and C++, since there is no clear way to compute the closure for a main (you could be using extern declarations for all subprograms, without ever using #include for instance). So gprbuild will build all project sources (either found automatically via Source_Dirs, or explicitly via Source_Files), build a library with these, and finally link the main unit using that library.


      reply	other threads:[~2016-03-08  8:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-08  5:02 Question about C++ files with GPRBUILD Zack Boll
2016-03-08  7:08 ` Egil H H
2016-03-08  8:35   ` briot.emmanuel [this message]
replies disabled

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